prevalence,SimInf_pmcmc-method | R Documentation |
Extract prevalence from the filtered trajectories from a particle Markov chain Monte Carlo algorithm.
## S4 method for signature 'SimInf_pmcmc'
prevalence(model, formula, level, index, start = 1, end = NULL, thin = 1)
model |
the |
formula |
A formula that specifies the compartments that
define the cases with a disease or that have a specific
characteristic (numerator), and the compartments that define
the entire population of interest (denominator). The
left-hand-side of the formula defines the cases, and the
right-hand-side defines the population, for example,
|
level |
The level at which the prevalence is calculated at
each time point in |
index |
indices specifying the subset of nodes to include
when extracting data. Default ( |
start |
The start iteration to remove some burn-in
iterations. Default is |
end |
the last iteration to include. Default is |
thin |
keep every |
A data.frame
where the first column is the
iteration
and the remaining columns are the result from
calling prevalence,SimInf_model-method
with the
arguments formula
, level
and index
for
each iteration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.