Description Usage Arguments Value See Also
Calculates the final size of an epidemic given 2-dimensional population categorisation eg. age and immunity class using an SIR model. Only takes 2 ages and 2 titres.
1 |
t |
current time, as for ode function |
pars |
vector of R0, alpha1, alpha2 (immunity of titre class 1 and 2) and duration of infectious period |
C |
the contact rate matrix for contact rates between each age/titre class (4x4 matrix) |
vector |
of compartment sizes ie. S11, I11, R11, S12 etc... |
a list of compartment size changes, as required by deSolve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.