Generic forward simulation function that can accomdate models with and without exposure classes
1 | simAR(X, Tx, PAR, Bfn, cpp = T)
|
X |
A vector of prevalence rates |
Tx |
A vector of case-management rates |
PAR |
A set of model parameters |
Bfn |
A function for building the matrix represention of the system of equations that update the state vector |
cpp |
A toggle for using the C++ version of the forward simulation algorithm |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.