summary.projections {projections} | R Documentation |
Summary for projections objects
Description
This method summarises predicted epidemic trajectories contained in a
projections
object by days, deriving the mean, standard deviation, and
user-specified quantiles for each day.
Usage
## S3 method for class 'projections'
summary(
object,
quantiles = c(0.025, 0.25, 0.5, 0.75, 0.975),
mean = TRUE,
sd = TRUE,
min = TRUE,
max = TRUE,
...
)
Arguments
object |
A |
quantiles |
A |
mean |
a |
sd |
a |
min |
a |
max |
a |
... |
only preesnt for compatibility with the generic if (require(incidence)) i <- incidence::incidence(as.Date('2020-01-23')) si <- c(0.2, 0.5, 0.2, 0.1) R0 <- 2 p <- project(x = i, si = si, R = R0, n_sim = 2, R_fix_within = TRUE, n_days = 10, model = "poisson" ) summary(p) |
Author(s)
Thibaut Jombart