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

pomp_df

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

data("pomp_df") head(pomp_df)
#> time .id S I R H cases #> 1 0 1 950 50 0 0 NaN #> 2 0 2 950 50 0 0 NaN #> 3 0 3 950 50 0 0 NaN #> 4 0 4 950 50 0 0 NaN #> 5 0 5 950 50 0 0 NaN #> 6 0 6 950 50 0 0 NaN
library(ggplot2) ggplot(pomp_df) + geom_line(aes(x = time, y = I, group = .id, col = as.numeric(.id)))