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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Obtaining the estimated residuals


From   Federico Belotti <f.belotti@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Obtaining the estimated residuals
Date   Mon, 13 May 2013 19:41:00 +0200

Dear Gabriel,

I'm assuming that the command you have used to estimate your model is -xtreg-. Thus, the command you are looking for is 

predict res, e

You can find detail by looking at the related help file

help xtreg postestimation

then click on the -predict- link.

HTH,
Federico

On May 13, 2013, at 7:21 PM, Gabriel wrote:

> I want to obtain the estimated residuals from an unbalanced panel estimated
> with the within estimator. When I use "estimates store' and check 'data
> editor' I see value 1 for present obeservations and value zero for the
> missing residuals. How do I get the values for the residuals measured as Y
> minus predicted Y?
> 
> It seems very trivial but I'm not able to find an answer. Some help would be
> very much appreciated.
> 
> 
> 
> --
> View this message in context: http://statalist.1588530.n2.nabble.com/Obtaining-the-estimated-residuals-tp7580365.html
> Sent from the Statalist mailing list archive at Nabble.com.
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

-- 
Federico Belotti, PhD
Research Fellow
Centre for Economics and International Studies
University of Rome Tor Vergata
tel/fax: +39 06 7259 5627
e-mail: federico.belotti@uniroma2.it
web: http://www.econometrics.it


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


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