| companionMat | R Documentation |
Builds the companion matrix representation for an AR(p) process, which is used in the state-space formulation of SV(p) models.
companionMat(phi, p, q)
phi |
Numeric vector of AR coefficients (length p). |
p |
Integer. Order of the AR process. |
q |
Integer. Dimension of each block (typically 1 for univariate). |
A (q*p) x (q*p) companion matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.