View source: R/estimate_activity.R
Estimate Infectious Activity from Incidence and Serial Interval
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | estimate_activity(.data, incid, .t, serial_interval_mean, serial_interval_sd)
## S3 method for class 'data.frame'
estimate_activity(
.data,
incid = "trend",
.t = "collection_date",
serial_interval_mean = 6,
serial_interval_sd = 4.17
)
## S3 method for class '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]]
)
|
.data |
Daily incidence data in data frame or |
incid |
Character. The column containing incidence data |
.t |
Character. The time column. |
serial_interval_mean |
Numeric. The average of the serial interval. |
serial_interval_sd |
Numeric. The standard deviation of the serial interval. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.