irf | R Documentation |
Calculation of impulse response functions for an identified SVAR object 'svars' derived by function id.cvm( ),id.cv( ),id.dc( ), id.ngml( ) or id.st( ).
## S3 method for class 'svars' irf(x, ..., n.ahead = 20)
x |
SVAR object of class "svars". |
... |
Currently not used. |
n.ahead |
Integer specifying the steps. |
A list with class attribute "svarirf" holding the impulse response functions as data frame.
Luetkepohl, H., 2005. New introduction to multiple time series analysis, Springer-Verlag, Berlin.
id.cvm
, id.dc
, id.ngml
, id.cv
or id.st
v1 <- vars::VAR(USA, lag.max = 10, ic = "AIC" ) x1 <- id.ngml(v1) x2 <- irf(x1, n.ahead = 20) plot(x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.