Extracts the delay distributions used in a fitted model. For
estimate_infections() this includes generation time, reporting delays,
and truncation delays. For estimate_secondary() this includes any
delays specified in the model. For estimate_truncation() this returns
the estimated truncation distribution.
Arguments
- object
A fitted model object (e.g., from
estimate_infections(),estimate_secondary(), orestimate_truncation())- ...
Additional arguments passed to methods
Value
A named list of dist_spec objects representing the delay
distributions. The list may be empty if no delays were specified.
Use names() to see available delays.
Examples
if (FALSE) { # \dontrun{
# Get all delays from a fitted model
delays <- get_delays(fit)
names(delays)
# Access specific delay
delays$generation_time
} # }
