Description Usage Arguments Value Examples
Simple SIR simulation
1 | sim_tsir_simple(pop, r.init, z.init, beta, under.obs, ntimes = 52)
|
pop |
integer, population |
r.init |
initial value for R state |
z.init |
initial value for Z (infected) state |
beta |
transmission parameter in model |
under.obs |
probability of an individual in Z being observed |
ntimes |
number of times to simulate |
A list with the following items
"obs"observed time series of infected Z class
"pop"The assumed fixed population size
"r.init"The assumed initial value for the R class
"z.init"The assumed initial value for the Z class
"beta"The transmission parameter
"under.obs"The assumed parameter for reporting probability
1 2 3 | sample.z = sim_tsir_simple(3.5e6, 0, 10, 1.5, 0.2)
plot(sample.z$obs)
sum(sample.z$obs)/sample.z$pop
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.