pomp_df: Example SIR simulation output of class ' data.frame' from the...

Description Usage Format Examples

Description

The data is an example of simulation output from functions from the pomp package by King et al. The code for how this data was generated can be found in the data-raw folder. We also make available the other possible output formats from pomp. See pomp_arr and pomp_pomp

Usage

1

Format

A data frame of dimension 10100 x 7 where the columns are

time

an integer value between 0 and 100

.id

the simulation ID number

S

The number of Susceptible at given time and simulation ID

I

The number of Infectious at given time and simulation ID

R

The number of Recovered at given time and simulation ID

H

A helper variable

cases

Examples

1
2
3
4
5
data("pomp_df")
head(pomp_df)
library(ggplot2)
ggplot(pomp_df) + geom_line(aes(x = time, y = I, group = .id,
col = as.numeric(.id)))

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