| print.surv_nowcast | R Documentation |
Nowcast lineage counts correcting for reporting delays
## S3 method for class 'surv_nowcast'
print(x, ...)
## S3 method for class 'surv_nowcast'
as.data.frame(x, ...)
surv_nowcast_lineage(
design,
delay_fit,
lineage = NULL,
time = "epiweek",
horizon = 4L,
ref_date = NULL,
method = c("direct", "em")
)
x |
Object to print. |
... |
Additional arguments (unused). |
design |
A |
delay_fit |
A |
lineage |
Character or |
time |
Character. Default |
horizon |
Integer. Recent periods to nowcast. Default 4. |
ref_date |
Date or |
method |
Character: |
Invisibly returns the input object.
A surv_nowcast object.
sim <- surv_simulate(n_regions = 3, n_weeks = 12, seed = 1)
d <- surv_design(sim$sequences, ~ region,
sim$population[c("region", "seq_rate")], sim$population)
fit <- surv_estimate_delay(d)
nc <- surv_nowcast_lineage(d, fit, "BA.2.86")
print(nc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.