Description Usage Arguments Value
simulateSIR function, included in this file because of difficulty including sample.h in two separate files. Rcpp code to simulate a general stochastic epidemic and binomial counts.
1 | simulateSIR(obstimes, params, init_config)
|
obstimes |
vector of observation times |
params |
vector of parameters: beta, mu |
init_config |
initial configuration of compartment counts |
popsize |
population size |
updated bookeeping objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.