| plot_forecast | R Documentation |
Shows the observed series together with the in-sample fitted mean (median and
credible band) and the forecast (median and credible band) over the forecast
horizon. The forecast is the one stored in the fit, or a new one computed
with forecast.dynamic_fit() when horizon (or another forecast input) is
supplied. For the multinomial family, one panel per category.
plot_forecast(
object,
level = 0.95,
category = NULL,
horizon = NULL,
forecast_offset = NULL,
forecast_trials = NULL,
seed = NULL,
...
)
object |
A |
level |
Credible level. Default |
category |
Multinomial family only: which categories to draw (names
or indices among the non-baseline categories for |
horizon, forecast_offset, forecast_trials, seed |
Passed to
|
... |
Passed to |
Invisibly, the "dynamic_forecast" object.
sim <- simulate_dynamic_poisson(60, 0.2, 2, seed = 1)
fit <- fit_dynamic_model(sim$y, nsave = 300, nburn = 200, seed = 1)
plot_forecast(fit, horizon = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.