- model
Structural time series model estimated using stsm_estimate.
- y
Univariate time series of data values. May also be a 2 column data frame containing a date column.
- n.ahead
Number of periods to forecast
- freq
Frequency of the data (1 (yearly), 4 (quarterly), 12 (monthly), 365.25/7 (weekly), 365.25 (daily)), default is NULL and will be automatically detected
- exo_obs
Matrix of exogenous variables to be used in the observation equation.
- exo_state
Matrix of exogenous variables to be used in the state matrix.
- exo_obs.fc
Matrix of exogenous variables in the observation matrix used for the forecast
- exo_state.fc
Matrix of exogenous variables in the state matrix used for the forecast
- ci
Confidence interval, value between 0 and 1 exclusive.
- plot,
Logical, whether to plot everything
- plot.decomp
Logical, whether to plot the filtered historical data
- plot.fc
Logical, whether to plot the forecast
- n.hist
Number of historical periods to include in the forecast plot. If plot = TRUE and n.hist = NULL, defaults to 3 years.
- smooth
Whether or not to use the Kalman smoother
- dampen_cycle
Whether to remove oscillating cycle dynamics and smooth the cycle forecast into the trend using a sigmoid function that maintains the rate of convergence
- envelope_ci
Whether to create a envelope for the confidence interval to smooth out seasonal fluctuations
to the longest seasonal period