Description Usage Arguments Value
View source: R/estimate_unboosted_rt.R
calibrate_rt()
uses the methodology of Cori et al 2013 to estimate the time-
varying reproduction number. It calls
estimate_R(method = "parametric_si")
under
the hood. It purposefully does not support aggregating counts over multiple
time periods due to poor coverage of the resulting credible intervals, as
well as shifting of the results due to lagging of the results. Use
the trend
argument in
prep_linelist()
to pre-smooth the
data instead.
1 2 3 4 5 6 7 | calibrate_rt(
.data,
incid = "trend",
.t = "collection_date",
serial_interval_mean = 6,
serial_interval_sd = 4.17
)
|
.data |
A data frame containing the incidence curve and dates |
incid |
The quoted name of a numeric column containing the incidence curve |
.t |
The quoted name of a date column corresponding to the observations
in |
serial_interval_mean |
The average number of days between infection of a primary case and a secondary case |
serial_interval_sd |
The standard deviation of the number of days between infection of a primary case and a secondary case |
A tibble
with columns .t
, .pred
(the median), .pred_lower
(the lower bound of the 95% credible interval), .pred_upper
(the upper bound of the 95% credible interval), .mean
(the average), and
.cv
(the coefficient of variation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.