Learn R Programming

decorrelate (version 0.1.6.4)

autocorr.mat: Create auto-correlation matrix

Description

Create auto-correlation matrix

Usage

autocorr.mat(p, rho)

Value

auto-matrix of size p with parameter rho

Arguments

p

dimension of matrix

rho

autocorrelation value

Examples

Run this code
# Create 4x4 matrix with correlation between adjacent enties is 0.9
autocorr.mat(4, .9)

Run the code above in your browser using DataLab