| Acoef_sh | R Documentation |
Returns the estimated coefficient matrices of the lagged endogenous
variables as a list of (K \times K) matrices.
Acoef_sh(x)
x |
An object of class "varshrinkeset", generated by VARshrink(). |
Consider VAR(p) model:
\mathbf{y}_t = \mathbf{A}_1 \mathbf{y}_{t-1} + ... + \mathbf{A}_p
\mathbf{y}_{t-p} + \mathbf{C} \mathbf{d}_t + \mathbf{e}_t.
The function returns the (K \times K) matrices
\mathbf{A}_1, ..., \mathbf{A}_p as a list object.
This function modifies vars::Acoef() for the class "varshrinkest",
preventing redundant copying of data matrix objects.
A list object with K-by-K VAR coefficient matrices
\mathbf{A}_1, ..., \mathbf{A}_p.
Acoef
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
Acoef_sh(estim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.