1 A note for Svar function in Matlab - Penn Engineering · 1 A note for Svar function in Matlab...
Click here to load reader
Transcript of 1 A note for Svar function in Matlab - Penn Engineering · 1 A note for Svar function in Matlab...
1 A note for Svar function in Matlab
Marco [email protected] University and Banca Intesa, Milan
SVAR verifies the identification conditions for a given structural form tobe imposed on an estimated VAR model. The require inputs are the set ofconstraints to be placed on the elements of the A and B matrices so that
V ec(A) = sA · γA + dA (1)V ec(B) = sB · γB + dB .
Here is an example.Consider a 2 variables VAR and suppose you want Choleski identification:
A =[
1 0a21 1
], B =
[b11 00 b22
]. (2)
Using 1 the constraints can be rewritten as follows:1
a21
01
=
0100
· [a21] +
1001
(3)
b11
00
b22
=
1 00 00 00 1
·[
b11
b22
]+
0000
. (4)
After creating sA, dA, sB , dB the SVAR procedure is run with
[a,b,a_se,b_se]=svar1(results,sa,sb,da,db,afree,bfree)
where results is a VARE structure, sa,sb,da,db, are the constraints and afreeand bfree are the number of free parameters in A and B matrices.
The demo file svar d.m gives an example of SVAR procedure for a 5 variablesVAR.
The interested reader can find details about identification and estimation ofa structural VAR models in Amisano and Giannini (1997). A good referencefor alternative identification schemes and their application to monetary policyanalys is Favero (2000).
2 References
Amisano, G., and Giannini, C., (1997). Topics in structural var econo-metrics. Second edition, Springer Verlag, New York.
Favero, C. A., (2000). Applied Macroeconometrics. Oxford UniversityPress, Oxford.
1