forecast.GLARMA {fableCount}R Documentation

Forecast a model from the fable package

Description

Produces forecasts from a trained model.

Usage

## S3 method for class 'GLARMA'
forecast(object, new_data, ...)

Arguments

object

A model for which forecasts are required.

new_data

Tsibble, it has to contains the time points and exogenous regressors to produce forecasts for.

...

Other arguments passed to methods

Details

Predict future observations based on a fitted GLM-type model for time series of counts. Futher informations about the forecast method can be obtained typing ?glarma::forecast

Value

A list of forecasts.

Examples

tsibbledata::aus_production |>
  fabletools::model(manual_gla = GLARMA(Beer ~ pq(1,0))) |>
  dplyr::select(manual_gla) |>
  fabletools::forecast(h = 2)

[Package fableCount version 0.1.0 Index]