Skip to contents

Produces forecasts from a trained model.

Usage

# S3 method for 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

Value

A list of forecasts.

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

Examples

tsibbledata::aus_production |>
  fabletools::model(manual_gla = GLARMA(Beer ~ pq(1,0))) |>
  dplyr::select(manual_gla) |>
  fabletools::forecast(h = 2)
#> # A fable: 2 x 4 [1Q]
#> # Key:     .model [1]
#>   .model     Quarter      Beer .mean
#>   <chr>        <qtr>    <dist> <dbl>
#> 1 manual_gla 2010 Q3 Pois(379)   379
#> 2 manual_gla 2010 Q4 Pois(380)   380