rolling_autoc {rshift}R Documentation

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)

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.

Value

A table of rolling lag-1 autocorrelation values.


[Package rshift version 3.0.0 Index]