Convenience function to extract a single delay distribution by name.
This is equivalent to
get_delays(object)[[type]] but provides a
cleaner interface.
Arguments
- object
A fitted model object (e.g., from
estimate_infections(),estimate_secondary(), orestimate_truncation())- type
Character string specifying the delay type to extract. Common values include
"generation_time","reporting", and"truncation". Usenames(get_delays(object))to see available types.- ...
Additional arguments passed to methods
Value
A dist_spec object representing the requested delay distribution,
or NULL if the specified type is not found.
See also
get_delays() to retrieve all delay distributions as a list
