Date and Date-Time Variable
It's a requirement to have a date or date-time variable as a predictor.
The fit() interface accepts date and date-time features and handles them internally.
ID features (Multiple Time Series, Panel Data)
The id parameter is populated using the fit() or fit_xy() function:
ID Example: Suppose you have 3 features:
y (target)
date (time stamp),
series_id (a unique identifer that identifies each time series in your data).
The series_id can be passed to the naive_reg() using
fit():
naive_reg(id = "series_id") specifes that the series_id column should be used
to identify each time series.
fit(y ~ date + series_id) will pass series_id on to the underlying
naive or snaive functions.
Seasonal Period Specification (snaive)
The period can be non-seasonal (seasonal_period = 1 or "none") or
yearly seasonal (e.g. For monthly time stamps, seasonal_period = 12, seasonal_period = "12 months", or seasonal_period = "yearly").
There are 3 ways to specify:
seasonal_period = "auto": A seasonal period is selected based on the periodicity of the data (e.g. 12 if monthly)
seasonal_period = 12: A numeric frequency. For example, 12 is common for monthly data
seasonal_period = "1 year": A time-based phrase. For example, "1 year" would convert to 12 for monthly data.
External Regressors (Xregs)
These models are univariate. No xregs are used in the modeling process.