Autocorrel: Autocorrel

Description Usage Arguments Value

View source: R/Autocorrel.R

Description

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

Usage

1
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 May 28, 2019, 8:24 a.m.