metaSIR_NC | R Documentation |
Generates a discrete-time epidemic model which constructs epidemics using a stream of random variables which are independent to the epidemic parameters and state.
metaSIR_NC(N_M, startTime, endTime, PRINT = F)
N_M |
Size of each meta-population. |
endTime |
The time which the epidemic should be simulated for. |
Returns three functions. A sim
function to simulate from the generated model,
given a set of parameters. A dailyProg
function, whose behaviour is identical
to sim
but simulates for one time unit only. Finally, a llh
function to calculate
he log-density for an epidemic, given a set of parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.