Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: estimating residuals with an A-GARCH model


From   Kuncho Tsilkov <kuncho_bg@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: estimating residuals with an A-GARCH model
Date   Sat, 10 Dec 2011 04:09:25 -0800 (PST)

 Hi all,
 
I have the following model that I estimate using an A-GARCH model:
 
Ret(US,t) = a(0) + a (1) R(US,t-1) + e(US,t) 
 
After I have run the model I would like to estmate the residual for the US.
The first way I did it is using the following Stata code:
 
gen residual_us = (return_us - _b[_cons])
 
The second way is to use:
 
predict residual_us, residual
 
So my question is what is the difference between the two as they give different values?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index