SSASeasonalCycle {greenbrown} | R Documentation |
The function calculates a seasonal cycle based on 1-D singular spectrum analysis (Golyandina et al. 2001) as implemented in the Rssa package. See ssa
for details.
SSASeasonalCycle(ts)
ts |
univariate time series of class |
Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]
Golyandina, N., Nekrutkin, V. and Zhigljavsky, A. (2001): Analysis of Time Series Structure: SSA and related techniques. Chapman and Hall/CRC. ISBN 1584881941
TrendSeasonalAdjusted
, ssa
, reconstruct
## load a time series of Normalized Difference Vegetation Index #data(ndvi) #plot(ndvi) ## estimate the seasonal cycle using SSA #ndvi.cycle <- SSASeasonalCycle(ndvi) #plot(ndvi.cycle) ## the mean seasonal cycle is centered to 0, ## add the mean of the time series if you want to overlay it with the original data #plot(ndvi) #lines(ndvi.cycle + mean(ndvi, na.rm=TRUE), col="blue")