Learn R Programming

VARshrink (version 0.3.3)

Bcoef_sh: Coefficient matrix of an estimated VAR(p)

Description

Returns the estimated coefficients of a VAR(p) model as a matrix.

Usage

Bcoef_sh(x)

Value

A matrix holding the estimated coefficients of a VAR.

Arguments

x

An object of class "varshrinkest" generated by VARshrink().

Details

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.

See Also

Bcoef

Examples

Run this code
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