| print.surv_adjusted | R Documentation |
Simultaneously corrects for unequal sequencing rates and right-truncation from reporting delays.
## S3 method for class 'surv_adjusted'
print(x, ...)
## S3 method for class 'surv_adjusted'
as.data.frame(x, ...)
surv_adjusted_prevalence(
design,
delay_fit,
lineage,
time = "epiweek",
prevalence_method = "hajek",
nowcast_method = "direct",
conf_level = 0.95,
bootstrap_n = 0L
)
x |
Object to print. |
... |
Additional arguments (unused). |
design |
A |
delay_fit |
A |
lineage |
Character. Target lineage. |
time |
Character. Default |
prevalence_method |
Character. Default |
nowcast_method |
Character. Default |
conf_level |
Numeric. Default 0.95. |
bootstrap_n |
Integer. 0 for delta method, >0 for bootstrap. Default 0. |
Invisibly returns the input object.
A surv_adjusted 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)
delay <- surv_estimate_delay(d)
adj <- surv_adjusted_prevalence(d, delay, "BA.2.86")
print(adj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.