VAR.irf | R Documentation |
This function returns Orthogonalized impluse response functions
VAR.irf(b, p, sigu, h=10,graphs=FALSE)
b |
VAR coefficient matrix, from VAR.est or similar estimation function |
p |
VAR order |
sigu |
VAR residual covariance matrix, from VAR.est or similar estimation function |
h |
response horizon, the default is set to 10 |
graphs |
logical, if TRUE, show the impulse-response functions, the default is FALSE |
VAR impulse response functions
impmat |
matrix that contains orthogonalized impulse-responses |
See Lutkepohl (2005) for details
Jae H. Kim
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.