restrict(x, method = c("ser", "manual"), thresh = 2.0, resmat = NULL)
varest
ser
: the threshhold value for the
t-statistics.manual
: The restriction matrix.varest
lm
resmat
.call
to varest
ser
or
manual
. In the former case, each equation is re-estimated
separately as long as there are t-values that are in absolut value below the
threshhold value set by the function's argument thresh
. In the
latter case, a restriction matrix has to be provided that consists of
0/1 values, thereby selecting the coefficients to be retained in the
model.VAR
data(Canada)
var.2c <- VAR(Canada, p = 2, type = "const")
## Restrictions by significance
restrict(var.2c, method = "ser")
## Restrictions set manually
restrict <- matrix(c(1, 1, 1, 1, 1, 1, 0, 0, 0,
1, 0, 1, 0, 0, 1, 0, 1, 1,
0, 0, 1, 1, 0, 1, 0, 0, 1,
1, 1, 1, 0, 1, 1, 0, 1, 0),
nrow=4, ncol=9, byrow=TRUE)
restrict(var.2c, method = "man", resmat = restrict)
Run the code above in your browser using DataLab