decomp | R Documentation |
Perform classical time series decomposition.
decomp(
y,
m = NULL,
s = NULL,
trend = NULL,
outplot = c(FALSE, TRUE),
decomposition = c("multiplicative", "additive", "auto"),
h = 0,
type = c("mean", "median", "pure.seasonal"),
w = NULL
)
y |
input time series. Can be |
m |
seasonal period. If |
s |
starting period in the season. If |
trend |
vector of the level/trend of |
outplot |
if |
decomposition |
type of decomposition. This can be |
h |
forecast horizon for seasonal component. |
type |
calculation for seasonal component:
|
w |
percentage or number of observations to winsorise in the calculation of mean seasonal indices. If w>1 then it is the number of observations, otherwise it is a percentage. If |
A list containing:
trend
: trend component.
season
: season component.
irregular
: irregular component.
f.season
: forecasted seasonal component if h>0
.
g
: pure seasonal model parameters.
Nikolaos Kourentzes, nikolaos@kourentzes.com.
Ord K., Fildes R., Kourentzes N. (2017) Principles of Business Forecasting, 2e. Wessex Press Publishing Co., p.106-111.
decomp(referrals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.