View source: R/forecast-methods.R
summary.fv_forecast | R Documentation |
summary
method for class "fv_forecast".
## S3 method for class 'fv_forecast'
summary(
object,
target = "posterior",
type = "model",
as_dt = FALSE,
forecast = FALSE,
...
)
object |
A |
target |
A character string indicating the target object within the
|
type |
A character string used to filter the summarised output and defaulting to "model". Current options are: "model" which returns a summary of key model parameters, "cases" which returns summarised cases, "voc_frac" which returns summarised estimates of the fraction of cases that have the variant of concern, "voc_advantage" that returns summarised estimates of the the transmission advantage of the variant of concern, "growth" which returns summarised variant specific and overall growth rates, "rt" which returns summarised variant specific and overall reproduction number estimates, "raw" which returns a raw posterior summary, and "all" which returns all tidied posterior estimates. |
as_dt |
Logical defaults to |
forecast |
Logical defaults to |
... |
Additional summary arguments. |
A summary data.table
.
summary.fv_posterior forecast unnest_posterior
Functions used for forecasting across models, dates, and scenarios
forecast_across_dates()
,
forecast_across_scenarios()
,
forecast_n_strain()
,
forecast()
,
plot.fv_forecast()
,
unnest_posterior()
options(mc.cores = 4)
forecasts <- forecast(
germany_covid19_delta_obs,
forecast_date = as.Date("2021-06-12"),
horizon = 4,
strains = c(1, 2),
adapt_delta = 0.99,
max_treedepth = 15,
variant_relationship = "scaled"
)
# inspect forecasts
forecasts
# extract the model summary
summary(forecasts, type = "model")
# extract the fit object
summary(forecasts, target = "fit")
# extract the case forecast
summary(forecasts, type = "cases", forecast = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.