[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Obtaining adjusted values from a regression
What you define here is usually called the
residual and is obtainable via -predict-.
> 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: