| Bcoef_sh | R Documentation |
Returns the estimated coefficients of a VAR(p) model as a matrix.
Bcoef_sh(x)
x |
An object of class "varshrinkest" generated by |
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 concatenated matrix (\mathbf{A}_1, ...,
\mathbf{A}_p, \mathbf{C}) as a matrix object.
This function modifies vars::Bcoef() for the class "varshrinkest",
preventing redundant copying of data matrix objects.
A matrix holding the estimated coefficients of a VAR.
Bcoef
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
Bcoef_sh(estim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.