Fast and simple iteration of stochastic models. Designed to work as a component of a particle filter.
Stochastic models appear in many domains as they are easy to write out, but hard to analyse without running many realisations of the process.
dust provides a light interface to run models that are written in C++ in parallel from R. It provides very little functionality aside from a random number generator that is designed to be run in parallel, and is mostly interested in providing an interface, with which more powerful tools can be developed.
# install.packages("drat") # -- if you don't have drat installed drat:::add("ncov-ic") install.packages("dust")
You will need a compiler to install dependencies for the package, and to build any models with dust.
pkgbuild to build its shared libraries so use
pkgbuild::check_build_tools() to see if your system is ok to use.
The development version of the package can be installed directly from GitHub if you prefer with:
remotes::install_github("mrc-ide/dust", upgrade = FALSE)