fortify_aggregate.pomp: Takes in data from the R pomp package where the output is a...

Description Usage Arguments Details Value

View source: R/fortify-aggregate-pomp-pompList.R

Description

Takes in data from the R pomp package where the output is a data frame and puts it in SIR format for EpiCompare

Usage

1
2
## S3 method for class 'pomp'
fortify_aggregate(data, states = NULL, package_source = NULL)

Arguments

data

Output from a pomp simulation where the output is a data frame, pomp::simulate()

states

vector of state names

package_source

optional package name

Details

The default variables that are retained are SIR, but can be modified with the states argument. If codestates = NULL, we will attempt to find all single letter names in POMP and output those.

Value

data frame with the following columns

t

the time

sim

simulation number (factor variable) (optional column)

Xk

where k = 0, ..., K


skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.