Retrieve Structural resids
-
zkontolemis
- Posts: 1
- Joined: Wed May 05, 2010 11:55 am
Retrieve Structural resids
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.
Re: Retrieve Structural resids
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:
For a Cholesky factorization, it would be
For a more general SVAR, you need to compute a factor of %sigma (call it, say, SFACTOR) and use
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() sresidsCode: Select all
estimate(resids=resids)
@structresids(factor=%decomp(%sigma)) resids %regstart() %regend() sresidsCode: Select all
@structresids(factor=sfactor) resids %regstart() %regend() sresids