estimate_activity.Rd
Estimate Infectious Activity from Incidence and Serial Interval
estimate_activity(.data, incid, .t, serial_interval_mean, serial_interval_sd)
# S3 method for data.frame
estimate_activity(
.data,
incid = "trend",
.t = "collection_date",
serial_interval_mean = 6,
serial_interval_sd = 4.17
)
# S3 method for covidmodel_rt
estimate_activity(
.data,
incid = ".incid",
.t = ".t",
serial_interval_mean = attr(.data, "serial_interval")[[1L]],
serial_interval_sd = attr(.data, "serial_interval")[[2L]]
)
Daily incidence data in data frame or covidmodel_rt
format
Character. The column containing incidence data
Character. The time column.
Numeric. The average of the serial interval.
Numeric. The standard deviation of the serial interval.