autocorrelation: Autocorrelation estimates

View source: R/convergence.R

autocorrelationR Documentation

Autocorrelation estimates

Description

Compute autocorrelation estimates for every lag for the specified input sequence using a fast Fourier transform approach. The estimate for lag t is scaled by N-t where N is the length of the sequence.

Usage

autocorrelation(x)

Arguments

x

(numeric vector) A sequence of values.

Value

A numeric vector of autocorrelations at every lag (scaled by N-lag).


stan-dev/posterior documentation built on Feb. 28, 2025, 6:53 p.m.