Extracts predictions from a fitted model, combining observations with model
estimates. For
estimate_infections() returns predicted reported cases, for
estimate_secondary() returns predicted secondary observations.
Usage
get_predictions(object, ...)
# S3 method for class 'estimate_infections'
get_predictions(object, CrIs = c(0.2, 0.5, 0.9), ...)
# S3 method for class 'estimate_secondary'
get_predictions(object, CrIs = c(0.2, 0.5, 0.9), ...)
# S3 method for class 'forecast_infections'
get_predictions(object, ...)
# S3 method for class 'forecast_secondary'
get_predictions(object, ...)Arguments
- object
A fitted model object (e.g., from
estimate_infections()orestimate_secondary())- ...
Additional arguments (currently unused)
- CrIs
Numeric vector of credible intervals to return. Defaults to c(0.2, 0.5, 0.9).
