sirs_data: Example of SIRS model generated from the 'pomp' package.

Description Usage Format Examples

Description

This is a stochastic (SIR)-> (SIR) model (two sets of infections in sequence) created from EpiCompare::simulate_agents(). The model is S1->I1->R1->S2->I2->R2. It is two SIR models pasted together with a transition between first recovery and second suscepbiility. The parameters are beta_1 = .5, β_2 = .08, γ_1 = .4, γ_2 = .06, η = .08 where η is the transition from R1 to S2.

Usage

1

Format

The object is a data frame of dimension 7525x8. The columns are

sim

simulation number between 1 and 25

t

time between 0 and 300

S1

susceptible for the first time

I1

infectious for first time

R1

recovered for first time

S2

susceptible for second time

I2

infectious for second time

R2

recovered for second and final time

Examples

1
2
3
library(ggplot2)
library(tidyr)
head(sirs_data)

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