getARpXmat: 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