rt_empirical {REffectivePred} | R Documentation |
R_t
Compute empirical R_t
, via Cori et al. (2013) method.
rt_empirical(cases, window_size, serial_mean, serial_var)
cases |
Vector of (confirmed) cases. |
window_size |
The maximum value for the serial interval. |
serial_mean |
Mean of the serial interval on the log scale. |
serial_var |
Variance of the serial interval on the log scale. |
A vector of same length as cases, giving the empirical estimate of the effective reproductive number over time.