Learn R Programming

REffectivePred (version 1.0.0)

rt_empirical: Empirical estimate of \(R_t\)

Description

Compute empirical \(R_t\), via Cori et al. (2013) method.

Usage

rt_empirical(cases, window_size, serial_mean, serial_var)

Value

A vector of same length as cases, giving the empirical estimate of the effective reproductive number over time.

Arguments

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.