precMatAR1: AR(1)

View source: R/stats.R

precMatAR1R Documentation

AR(1)

Description

Return a first-order auto-regressive precision matrix, as in section 1.1.1 of Rue and Held (2005).

Usage

precMatAR1(n, rho, sigma2)

Arguments

n

dimension of the matrix (number of rows and columns)

rho

correlation between successive variables

sigma2

variance of the errors (also called "innovations" in the time-series literature)

Value

sparse matrix

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.