prevalence,SimInf_pfilter-method | R Documentation |
Extract prevalence from running a particle filter
## S4 method for signature 'SimInf_pfilter'
prevalence(model, formula, level, index, format = c("data.frame", "matrix"))
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 ( |
format |
The default ( |
A data.frame
if format = "data.frame"
, else
a matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.