Description Usage Arguments Value
Sequential Monte Carlo algorithm
1 2 3 | SMCwithModPossionTL(observedCounts, observedTimes, parameters, alphaBreaks,
startMeans, nparticles, popSize, reportingRate, deltatval, ncrit, UseGill,
UseSIWR)
|
observedCounts |
Integer vector of observed counts |
observedTimes |
Numeric vector of observation times |
parameters |
Numeric vector of size seven containing the current values of the infectious contact rate, the recovery rate, the rate at which immunity is lost, and the powers |
alphaBreaks |
List containing the time-varying environmental force of infection and the times at which the rate changes, broken up by simulation intervals |
startMeans |
Numeric vector of size two containing the means of initial distributions for the numbers of susceptible and infected individuals respectively |
nparticles |
Number of particles |
popSize |
Population size |
reportingRate |
Probability of infected individuals seeking treatment |
deltatval |
Initial value to use for tau in tau-leaping algorithm |
ncrit |
Critical size for modified tau-leaping algorithm; if the population of a compartment is lower than this number a single step algorithm is used until the population gets above the critical size. |
UseGill |
boolian; if 1, uses the gillespie algorithm. If 0, uses tau-leaping algorithm |
log-likelihood and estimate of last state
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.