GARCH instruction

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.

GARCH instruction

Postby msrahman » Thu Dec 06, 2012 5:48 pm

Hello,

I am applying the GARCH instruction in a loop over 1000 simulated series and writing down the coefficients (%BEATA) in a file. I want to write down only those set of coefficients for which the GARCH model converges ( I guess the model does not converge for 200 series out of those 10000). Any suggestion how to do this?

Thanks.

S. Rahman
msrahman
 
Posts: 12
Joined: Wed Oct 31, 2012 2:32 pm

Re: GARCH instruction

Postby TomDoan » Fri Dec 07, 2012 12:32 pm

%CONVERGED is 1 after a GARCH instruction which converges and 0 otherwise, so you can test that and only do the WRITE instruction when %CONVERGED is 1.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Help With Programming

Who is online

Users browsing this forum: No registered users and 2 guests