R commands to explore time series data …

http://vanintothewild.fr/wp-login.php?registration=disabled R commands to explore time series data

http://secretmans.fr/?p=549 ts(data) # create time series objects
time(ts.data) # returns the time

diff(ts.data, lag=1) # difference at the specified lag
lag.plot(ts.data, 9, do.lines=FALSE) # plot with specified lags

plot(stl(ts.data, “per”)) # decomposition of time series data

spec.pgram(ts.data, spans=c(3,3), log=”no”) # non-parametric spectral analysis
spec.ar(ts.data, spans=c(3,3), log=”no”) # parametric estimation


Leave a Reply

Your email address will not be published. Required fields are marked *