Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Determining residuals following adjustment in a regression model


From   Daniel Herbert Opi <[email protected]>
To   [email protected]
Subject   st: Determining residuals following adjustment in a regression model
Date   Wed, 18 Dec 2013 16:50:39 +1100

Hi All,

I am carrying out a regression model and I am interested in
determining the residuals for each single observation. The model is
adjusted for at least one variable. But I realise the residuals
generated in the adjusted model are identical to those in those in the
unadjusted model.

Is there a way of determining residuals that take into account the
adjustment in the model.

Example of the commands in I've used in stata:

The adjusted model
xi:regress continous_variable i.variable2 i.variable3

The unadjusted model
xi:regress continous_variable i.variable2

The prediction command I've used:
predict resid_sample, resid

I would appreciate any help with this.
Herbert
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index