Learn R Programming

vars (version 0.1.7)

restrict: Restricted VAR

Description

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

Usage

restrict(x, method = c("ser", "manual"), thresh = 2.0, resmat = NULL)

Arguments

x
An object of class varest generated by VAR().
method
A character, choosing the method
thresh
If method ser: the threshhold value for the t-statistics.
resmat
If method manual: The restriction matrix.

Value

  • A list with class attribute varest holding the following elements:
  • varresultlist of lm objects.
  • residA matrix object of the residuals.
  • datamatThe data matrix of the endogenous and explanatory variables.
  • yThe data matrix of the endogenous variables
  • typeA character, specifying the deterministic regressors.
  • pAn integer specifying the lag order.
  • KAn integer specifying the dimension of the VAR.
  • obsAn integer specifying the number of used observations.
  • totobsAn integer specifying the total number of observations.
  • restrictionsThe matrix object containing the zero restrictions provided as argument resmat.
  • callThe call to VAR().

encoding

latin1

concept

  • VAR
  • restricted VAR
  • Vector autoregressive model

Details

Given an estimated VAR object of class varest, a restricted VAR can be obtained by either choosing method 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.

References

Hamilton, J. (1994), Time Series Analysis, Princeton University Press, Princeton. L�tkepohl, H. (2006), New Introduction to Multiple Time Series Analysis, Springer, New York.

See Also

VAR

Examples

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