Retrieve Structural resids

Questions and discussions on Vector Autoregressions
zkontolemis
Posts: 1
Joined: Wed May 05, 2010 11:55 am

Retrieve Structural resids

Unread post by zkontolemis »

I want to estimate a simple VAR, use either Cholesky or Bernanke-Sims identification scheme and then retrieve the structural residuals. I know how to convert VAR into structural resids using the procedure. But I am not sure what is the best way to extract the residuals after Cholesky or Sims to use in the conversion procedure.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Retrieve Structural resids

Unread post by TomDoan »

You use the RESIDS option on ESTIMATE to get the VECT[SERIES] of residuals, then transform into the structural residuals with the @StructResids procedure. For a B-Q factorization, that goes like:

Code: Select all

estimate(resids=resids)
*
* Compute the Blanchard-Quah factorization of the covariance matrix
*
compute bqfactor=%bqfactor(%sigma,%varlagsums)
@structresids(factor=bqfactor) resids %regstart() %regend() sresids
For a Cholesky factorization, it would be

Code: Select all

estimate(resids=resids)
@structresids(factor=%decomp(%sigma)) resids %regstart() %regend() sresids
For a more general SVAR, you need to compute a factor of %sigma (call it, say, SFACTOR) and use

Code: Select all

@structresids(factor=sfactor) resids %regstart() %regend() sresids
Post Reply