cv_rt() computes the reproduction number for each sample in the results of cv_linelist_decomposition() .

cv_rt(.data, .ref, .t, serial_interval_mean, serial_interval_sd, half_trend)

Arguments

.data

The cross-validation results from cv_linelist_decomposition()

.ref

Reference Rt

.t

The quoted name of a date column corresponding to the observations in incid

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

half_trend

The portion of the trend conditional on future data

Value

A list of tibbles with Rt estimates and associated errors