trajectory,SimInf_pfilter-method {SimInf} | R Documentation |
Extract filtered trajectory from running a particle filter
Description
Extract filtered trajectory from running a particle filter
Usage
## S4 method for signature 'SimInf_pfilter'
trajectory(model, compartments, index, format = c("data.frame", "matrix"))
Arguments
model |
the |
compartments |
specify the names of the compartments to
extract data from. The compartments can be specified as a
character vector e.g. |
index |
indices specifying the subset of nodes to include
when extracting data. Default ( |
format |
the default ( |
Value
A data.frame
if format = "data.frame"
, else
a matrix.