summary.projections | R Documentation |
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.
## 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,
...
)
object |
A |
quantiles |
A |
mean |
a |
sd |
a |
min |
a |
max |
a |
... |
only preesnt for compatibility with the generic |
Thibaut Jombart
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.