Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Obtaining adjusted values from a regression


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Obtaining adjusted values from a regression
Date   Mon, 6 Jun 2005 13:06:35 +0100

What you define here is usually called the 
residual and is obtainable via -predict-. 

Nick 
[email protected] 

David Fisher

> I want to obtain values for a particular variable ("x") after 
> adjustment for 
> another variable ("y"), so that the new variable ("adjusted 
> x") no longer 
> varies with "y".
> After typing "regress x y", giving the equation xhat=a+b*y, I 
> think I need 
> to obtain the variable x-b*y.  Is this correct, and is there 
> a way to obtain 
> this variable without copy-pasting the regression coefficient 
> into a "gen" command?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index