Plots the autocorrelation function to check stationarity
prep.check.acf(tserie)
a ts
or a prep
object
For a stationary time series, the ACF will drop to zero relatively quickly, while the ACF of non-stationary data decreases slowly. Also, for non-stationary data, the value is often large and positive.
# NOT RUN {
prep.check.acf(AirPassengers)
prep.check.acf(prep(AirPassengers))
# }
Run the code above in your browser using DataLab