Description Details References See Also Examples
euler.sir
is a pomp
object encoding a simple seasonal SIR model.
Simulation is performed using an Euler multinomial approximation.
gillespie.sir
has the same model implemented using Gillespie's algorithm.
bbs
is a nonseasonal SIR model together with data from a 1978 outbreak of influenza in a British boarding school.
This and similar examples are discussed and constructed in tutorials available on the package website.
The boarding school influenza outbreak is described in Anonymous (1978).
Anonymous (1978). Influenza in a boarding school. British Medical Journal 1:587
pomp
and the tutorials on the package website.
1 2 3 4 5 6 7 8 9 10 11 12 13 | pompExample(euler.sir)
plot(euler.sir)
plot(simulate(euler.sir,seed=20348585))
coef(euler.sir)
pompExample(gillespie.sir)
plot(gillespie.sir)
plot(simulate(gillespie.sir,seed=20348585))
coef(gillespie.sir)
pompExample(bbs)
plot(bbs)
coef(bbs)
|
In 'pomp': the following unrecognized argument(s) will be stored for use by user-defined functions: 'nbasis','degree','period'
newly created object(s):
euler.sir
gamma mu iota beta1 beta2 beta3 beta.sd pop
2.60e+01 2.00e-02 1.00e-02 4.00e+02 4.80e+02 3.20e+02 1.00e-03 2.10e+06
rho S_0 I_0 R_0
6.00e-01 6.50e-02 1.00e-03 9.35e-01
In 'pomp': the following unrecognized argument(s) will be stored for use by user-defined functions: 'comp.names','ic.names','nbasis','degree','period'
newly created object(s):
gillespie.sir
gamma mu iota beta1 beta2 beta3
2.400000e+01 1.428571e-02 1.000000e-01 3.300000e+02 4.100000e+02 4.900000e+02
rho S_0 I_0 R_0 pop beta.sd
1.000000e-01 5.000000e-02 1.000000e-04 9.500000e-01 1.000000e+06 0.000000e+00
In 'pomp': the following unrecognized argument(s) will be stored for use by user-defined functions: 'nbasis','degree','period','logvar','logitvar'
newly created object(s):
bbs
gamma mu iota beta beta.sd pop
0.3333333 0.0000000 0.0000000 1.4000000 0.0000000 1400.0000000
rho sigma S_0 I_0 R_0
0.9000000 3.6000000 0.9990000 0.0010000 0.0000000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.