IR_info.rSEIR: New S3 method for gathering information from stochastic SEIR...

Description Usage Arguments Examples

View source: R/IR_info.R View source: R/IR_info.R

Description

IR_info returns the simulated information at a given infected proportion for SEIR model

IR_info returns the simulated information at a given infected proportion for SEIQR model

Usage

1
2
3
4
5
## S3 method for class 'rSEIR'
IR_info(x, y)

## S3 method for class 'rSEIR'
IR_info(x, y)

Arguments

x

the output from simulation

y

the input infected proportion

Examples

1
2
3
4
5
6
7
model1 <- rSEIR(N0 = 1000, I0 = 0, S0 = 999, R0 = 0, E0 = 1 , days = 300,
                pars = c(1/12, 1, 1/4, 1/5, 0.3, 0.2, 0.7))
IR_info(model1, 0.3)

model1 <- rSEIQR(N0 = 100, S0 = 99, E0 = 1 ,I0 = 0, Q0 = 0, R0 = 0,
                 days = 100,  pars = c(1/12, 1, 0.5, 0.15, 0.04, 0, 0, 1))
IR_info(model1, 0.3)

jessseliu/epidmod documentation built on Sept. 15, 2020, 8:53 p.m.