hist.rSEIQR: S3 histogram for stochastic SEIQR model

Description Usage Arguments Examples

View source: R/hist.R

Description

hist returns histogram for the number of each group given a certain time

Usage

1
2
## S3 method for class 'rSEIQR'
hist(x, y, nsim = 100)

Arguments

x

the output from simulation

y

the input a certain time

nsim

number of simulation to produce the histogram

Examples

1
2
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))
hist( model1, 81, 100)

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