trajectory,SimInf_pmcmc-method | R Documentation |
Extract filtered trajectories from a particle Markov chain Monte Carlo algorithm.
## S4 method for signature 'SimInf_pmcmc'
trajectory(model, compartments, index, start = 1, end = NULL, thin = 1)
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 ( |
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 trajectory,SimInf_model-method
with the
arguments compartments
and index
for each
iteration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.