powered by
Returns the estimated coefficients of a VAR(p) model as a matrix.
Bcoef_sh(x)
A matrix holding the estimated coefficients of a VAR.
An object of class "varshrinkest" generated by VARshrink().
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 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.
vars::Bcoef()
Bcoef
data(Canada, package = "vars") y <- diff(Canada) estim <- VARshrink(y, p = 2, type = "const", method = "ridge") Bcoef_sh(estim)
Run the code above in your browser using DataLab