Autocorrel: Autocorrel

View source: R/Autocorrel.R

AutocorrelR Documentation

Autocorrel

Description

Compute autocorrelated variable, p = autocorrelation, lastx = last value of variable x

Usage

Autocorrel(p, lastx, x)

Arguments

p

autocorrelation

lastx

last value of variable x

x

A random (non-correlated) variable generated from the gamma function for the variable.

Value

New random autocorrelated variable (scalar)


eeholmes/VRAP documentation built on Nov. 23, 2024, 2:35 a.m.