initModel function

Initialize a model from the Rlgt family

Initialize a model from the Rlgt family

This is an internal function that usually won't be called by users directly. It validates the model type and generates the corresponding list of parameters for the model.

initModel( model.type = NULL, use.regression = FALSE, seasonalityMethodId = 0, levelMethodId = 0, useSmoothingMethodForError = FALSE )

Arguments

  • model.type: type of the forecasting model selected, a character object
  • use.regression: binary parameter indicating whether additional regressors will be used for forecasting in multivariate settings.
  • seasonalityMethodId: Seasonality method Id (0- HW, 1- generalized).
  • levelMethodId: Level method Id.
  • useSmoothingMethodForError: if the non-standard function for error size should be used, one based on smoothed innovations or surprises

Returns

an Rlgt skeleton model

Downloads (last 30 days):