Description Usage Arguments Value
Generic SIR ode function (for use in deSolve), taking an arbritrary number of populations, ages and immunity classes
| 1 | general_sir(t, y, pars, C, Nage, Ntiter)
 | 
| t | current time, as for ode function | 
| pars | vector of R0, 1/gamma and alphas (vector of immunity conferred for each titre class) | 
| C | the normalised contact matrix of contact frequencies between each age and titre classes | 
| Nage | number of age classes | 
| Ntiter | number of titre classes | 
| vector | of compartment sizes eg. S11, I11, R11, S12, I12, R12 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.