| restrict_sh | R Documentation |
Estimation of a VAR by imposing zero restrictions manually or by significance.
restrict_sh(x, ...)
x |
An object of class "varshrinkest" |
... |
Other arguments to vars::restrict() |
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.
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.
restrict
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
restrict_sh(estim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.