This software package accompanies the manuscript "A mathematical model of H5N1 influenza transmission in US dairy cattle" (Rawson et al., 2025).
The package provides a flexible interface for building SEIR meta-population models of infectious disease dynamics, which we primarily use for modelling HPAI H5N1 in US dairy cattle, as seen in our associated vignettes.
The underlying model code can be found at [inst/dust/cows.cpp
].
Fitting the model, as seen in our vignettes, can make use of traditional MCMC or particle MCMC methods via the dust2
and monty
packages.
To install cowflu
:
remotes::install_github("mrc-ide/cowflu", upgrade = FALSE)
Typical install time is < 30 seconds.
You will need cpp11
, decor
, and brio
installed too.
- Make changes to the model at [
inst/dust/cows.cpp
] - Run
dust2::dust_package(".")
- Run the tests with
devtools::test()
(once they exist!)
If you are set up with a command line, you can make src/cows.cpp
instead of the second step.
MIT © Imperial College of Science, Technology and Medicine