rolling_autoc: Rolling autocorrelation
Description
finds lag-1 autocorrelation in a rolling window; can be used to predict resilience (Liu, Gao, & Wang, 2018)
Usage
rolling_autoc(data, col, l)
Value
A table of rolling lag-1 autocorrelation values.
Arguments
- data
The dataframe that will be used.
- col
The column we are measuring change on.
- l
The time interval (no. of columns) used in the autocorrelation.