Learn R Programming

VARshrink (version 0.3.3)

restrict_sh: Restricted VAR

Description

Estimation of a VAR by imposing zero restrictions manually or by significance.

Usage

restrict_sh(x, ...)

Value

An object of class "varest", a VAR model fitted using ordinary least squares. It contains an additional element restrictions, which is a zero-one matrix indicating which variables were fixed to zero.

Arguments

x

An object of class "varshrinkest"

...

Other arguments to vars::restrict()

Details

This is a modification of vars::restrict() for the class "varshrinkest". Given an estimated VAR object of class "varest" or "varshrinkest", a restricted VAR is obtained by choosing method "ser" or "manual". Note: this function fits a restricted VAR using ordinary least squares rather than a shrinkage method.

See Also

restrict

Examples

Run this code
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
restrict_sh(estim)

Run the code above in your browser using DataLab