[R] Impose Structure for Exogenous in vars Package

Pfaff, Bernhard Dr. Bernhard_Pfaff at fra.invesco.com
Mon Feb 27 09:47:17 CET 2017

Hi Andrew,

if I understand your question correctly, then you would like to place constraints for your exogenous variables in some VAR equations.
If so, please have a look at ?restrict.

As a toy example:

N <- nrow(Canada)
ExoVar <- matrix(runif(N))
colnames(ExoVar) <- "Exogenous"
mod <- VAR(Canada, exogen = ExoVar)

here, ExoVar will be removed given that the plain vanilla call to restrict() removes all variables with insignificant coeffiecients (|t-stat| < 2.0)   in a VAR equation. 
You can also provide a 'constraint' matrix for entering zero-constraints.


-----Ursprüngliche Nachricht-----
Von: R-help [mailto:r-help-bounces at r-project.org] Im Auftrag von Castro, Andrew William Keahi
Gesendet: Donnerstag, 23. Februar 2017 15:42
An: r-help at R-project.org
Betreff: [EXT] [R] Impose Structure for Exogenous in vars Package

Hello everyone,

I see there are structural VAR options in the vars package for the endogenous variables, but is there any easy way to impose structure on the exogenous variable matrix (notated as the matrix C on page 45 of https://cran.r-project.org/web/packages/vars/vars.pdf). Thanks!

	[[alternative HTML version deleted]]

R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Confidentiality Note: The information contained in this ...{{dropped:10}}

More information about the R-help mailing list