powered by
simpledecomp
simpledecomp decomposes a vector into trend, season and irregular component by linear regression approach
simpledecomp(y, trend = 0, season = 0, Plot = FALSE)
the series, a vector or a time series
order of trend polynomial
period of seasonal component
logical, should a plot be produced?
out: (n,3) matrix
smooth component
seasonal component
irregular component
# NOT RUN { data(GDP) out <- simpledecomp(GDP,trend=3,season=4,Plot=FALSE) # }
Run the code above in your browser using DataLab