stlar | R Documentation |
STL decomposition method applied to the time series, then an AR model is used to forecast seasonally adjusted data, while the seasonal naive method is used to forecast the seasonal component
stlar(y, h = 10, s.window = 11, robust = FALSE)
y |
a univariate time series |
h |
forecast horizon |
s.window |
Either the character string “periodic” or the span (in lags) of the loess window for seasonal extraction |
robust |
logical indicating if robust fitting be used in the loess procedue |
return object of class forecast
Thiyanga Talagala
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.