Description Usage Arguments Value Examples
robsplinedecomp
decomposes a vector into trend, season and irregular component
by robustified spline approach; a time series attribute is lost
1 | robsplinedecomp(y, d, alpha, beta, Plot = FALSE)
|
y |
the series, a vector or a time series |
d |
seasonal period |
alpha |
smoothing parameter for trend component (the larger alpha is, the smoother will the smooth component g be) |
beta |
smoothing parameter for seasonal component |
Plot |
logical, should a plot be produced? |
out list with the elements trend, season, residual
1 2 | data(GDP)
out <- robsplinedecomp(GDP,4,2,10,Plot=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.