getARpXmat: Compute the design matrix X for AR(p) model

View source: R/helper_functions.R

getARpXmatR Documentation

Compute the design matrix X for AR(p) model

Description

Compute the design matrix X for AR(p) model

Usage

getARpXmat(y, p = 1, include_intercept = FALSE)

Arguments

y

(T x 1) vector of responses

p

order of AR(p) model

include_intercept

logical; if TRUE, first column of X is ones


dsp documentation built on Aug. 21, 2025, 5:29 p.m.