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/