powered by
This function returns Orthogonalized impluse response functions
VAR.irf(b, p, sigu, h=10,graphs=FALSE)
matrix that contains orthogonalized impulse-responses
VAR coefficient matrix, from VAR.est or similar estimation function
VAR order
VAR residual covariance matrix, from VAR.est or similar estimation function
response horizon, the default is set to 10
logical, if TRUE, show the impulse-response functions, the default is FALSE
Jae H. Kim
VAR impulse response functions
Lutkepohl, H. 2005, New Introduction to Multiple Time Series Analysis, Springer
#replicating Table 3.4 and Figure 3.11 Lutkepohl (2005) data(dat) M=VAR.est(dat,p=2,type="const") b=M$coef; sigu=M$sigu VAR.irf(b,p=2,sigu,graphs=TRUE)
Run the code above in your browser using DataLab