Learn R Programming

predtoolsTS (version 0.1.1)

prep.check.acf: Autocorrelation function

Description

Plots the autocorrelation function to check stationarity

Usage

prep.check.acf(tserie)

Arguments

tserie

a ts or a prep object

Details

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.

Examples

Run this code
# NOT RUN {
prep.check.acf(AirPassengers)
prep.check.acf(prep(AirPassengers))
# }

Run the code above in your browser using DataLab