hist.rSEIQHRF: S3 histogram for stochastic SEIQHRF 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 'rSEIQHRF'
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
4
5
para <- c(4,2,1,2,1,3,1,2,1,2,0.9, 0.3, 0.4,0.1, 0.1)
model1 <- rSEIQHRF(N0 = 1000, S0 = 999, E0 = 1, I0 = 0, Q0 = 0, H0 = 0,
                   R0 = 0, F0 = 0, days = 300, pars = para )

hist( model1, 81, 50)

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