Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: SVAR: Return code 498

From   DE SOUZA Eric <>
To   "" <>
Subject   st: RE: SVAR: Return code 498
Date   Mon, 9 May 2011 16:27:46 +0200

The instructions below work. The model is over-identified.

Eric de Souza
College of Europe
Brugge (Bruges), Belgium

set more off
log using irf3.log
matrix A = (1,0,0\.,1,0\0,.,1)
matrix B = (.,0,0\0,.,0\0,0,.)
svar dln_inv dln_inc dln_consump if qtr<=tq(1978q4), aeq(A) beq(B) var dfk
matrix Aest = e(A)
matrix Best = e(B)
matrix chol_est = inv(Aest)*Best
matrix list chol_est
matrix sig_var = e(Sigma)
matrix chol_var = cholesky(sig_var)
matrix list chol_var
irf create aqmch11irf_2, set(aqmch11)  step(10)
irf graph sirf, impulse(dln_inc) response(dln_consump)
graph export aqmch11irf_1.emf
log close
set more on

-----Original Message-----
From: [] On Behalf Of Charles Koss
Sent: 09 May 2011 16:08
To: Stata List
Subject: st: SVAR: Return code 498

Dear list members, I am using the command SVAR, but when I calculate the IRFs I obtained an error message as follows:
predict may not be used after fitting an overidentified SVAR model to get these statistics for the underlying VAR, fit it with var, then run predict r(498);

This is the code I am using:

set more off
matrix A = (1,0,0\.,1,0\.,0,1)
matrix B = (.,0,0\0,.,0\0,0,.)
svar missouri indiana kentucky, lags(1/4) aeq(A) beq(B) set seed 05062011 //compare irfs with rats irf create order1, set(jmulti_gretl_stata)  step(16) bs reps(50)

I wonder, why the error message appears? When the system is just identified the irfs are calculated. It seems that the irfs can not be calculated when the system is overidentified. As such, it seems to me that the estimation of the irfs do not take advantage of short run restrictions when the system is just identified. Any commenst on this issue? Your help will be appreciated.

Thank you,


Charles Koss
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index