simAR.RdGeneric forward simulation function that can accomdate models with and without exposure classes
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 |