Learn R Programming

RGAP (version 0.1.1)

.covAR: Computes the covariance of an AR(q) process.

Description

Computes the covariance of an AR(q) process.

Usage

.covAR(k, phi, sigma)

Value

A k x k covariance matrix.

Arguments

k

integer indicating the lag length of the covariance.

phi

q x 1 vector of parameters.

sigma

the innovation variance of the AR(q) process.