Impulse Response
Impulse Response
Impulse Response
stata.com
irf Create and analyze IRFs, dynamic-multiplier functions, and FEVDs
Syntax
Description
References
Also see
Syntax
irf subcommand . . .
, ...
subcommand
Description
create
set
graph
cgraph
ograph
table
ctable
describe
add
drop
rename
IRF stands for impulseresponse function; FEVD stands for forecast-error variance decomposition.
irf can be used only after var, svar, vec, arima, or arfima; see [TS] var, [TS] var svar, [TS] vec,
[TS] arima, and [TS] arfima.
See [TS] irf create, [TS] irf set, [TS] irf graph, [TS] irf cgraph, [TS] irf ograph, [TS] irf table,
[TS] irf ctable, [TS] irf describe, [TS] irf add, [TS] irf drop, and [TS] irf rename for details about
subcommands.
Description
irf creates and manipulates IRF files that contain estimates of the IRFs, dynamic-multiplier
functions, and forecast-error variance decompositions (FEVDs) created after estimation by var, svar,
or vec; see [TS] var, [TS] var svar, or [TS] vec.
irf creates and manipulates IRF files that contain estimates of the IRFs created after estimation
by arima or arfima; see [TS] arima or [TS] arfima.
IRFs and FEVDs are described below, and the process of analyzing them is outlined. After reading
this entry, please see [TS] irf create.
stata.com
.004
.002
.002
0
10
step
95% CI
orthogonalized irf
Multiple sets of IRFs and FEVDs can be placed in the same file, with each set of results in a
file bearing a distinct name. The irf create command above created file myirf1.irf and put
one set of results in it, named order1. The order1 results include estimates of the simple IRFs,
orthogonalized IRFs, cumulative IRFs, cumulative orthogonalized IRFs, and Cholesky FEVDs.
Below we use the same estimated var but use a different Cholesky ordering to create a second set
of IRF results, which we will save as order2 in the same file, and then we will graph both results:
.01
.005
.005
0
10
10
step
95% CI
orthogonalized irf
We have compared results for one model under two different identification schemes. We could just
as well have compared results of two different models. We now use irf table to display the results
tabularly:
. irf table oirf, irf(order1 order2) impulse(dln_inc) response(dln_consump)
Results from order1 order2
step
0
1
2
3
4
5
6
7
8
9
10
(1)
oirf
(1)
Lower
(1)
Upper
(2)
oirf
(2)
Lower
(2)
Upper
.004934
.001309
.003573
-.000692
.000905
.000328
.000021
.000154
.000026
.000026
.000026
.003016
-.000931
.001285
-.002333
-.000541
-.0005
-.000675
-.000206
-.000248
-.000121
-.000061
.006852
.003549
.005862
.00095
.002351
.001156
.000717
.000515
.0003
.000174
.000113
.005244
.001235
.00391
-.000677
.00094
.000341
.000042
.000161
.000027
.00003
.000027
.003252
-.001011
.001542
-.002347
-.000576
-.000518
-.000693
-.000218
-.000261
-.000125
-.000065
.007237
.003482
.006278
.000993
.002456
.001201
.000777
.00054
.000315
.000184
.00012
Both the table and the graph show that the two orthogonalized IRFs are essentially the same. In both
functions, an increase in the orthogonalized shock to dln inc causes a short series of increases in
dln consump that dies out after four or five periods.
References
Becketti, S. 2013. Introduction to Time Series Using Stata. College Station, TX: Stata Press.
Hamilton, J. D. 1994. Time Series Analysis. Princeton: Princeton University Press.
Lutkepohl, H. 1993. Introduction to Multiple Time Series Analysis. 2nd ed. New York: Springer.
. 2005. New Introduction to Multiple Time Series Analysis. New York: Springer.
Also see
[TS] arfima Autoregressive fractionally integrated moving-average models
[TS] arima ARIMA, ARMAX, and other dynamic regression models
[TS] var Vector autoregressive models
[TS] var svar Structural vector autoregressive models
[TS] varbasic Fit a simple VAR and graph IRFs or FEVDs
[TS] vec Vector error-correction models
[TS] var intro Introduction to vector autoregressive models
[TS] vec intro Introduction to vector error-correction models