rolling_autoc: Rolling autocorrelation

View source: R/rolling_autoc.R

rolling_autocR 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.


rshift documentation built on April 12, 2025, 1:20 a.m.

Related to rolling_autoc in rshift...