Good afternoon,
Suppose that my task is to obtain the residual vector in a multiple regression of Y on X and Z. Let's call this residual vector R. X and Z are two groups of variables.
With experimentation where X and Z contain each only one variable, it seems to me that the following algorithm achieves the task:
1. Regress Y on X, predict the residual vector R1, say.
2. Regress R1 on Z, predict the residual vector R2.
3. Regress R2 on X, predict the residual vector R3.
4. Regress R3 on Z, predict the residual vector R4
... repeat the procedure until the Residual Sum of Squares does not change between this and next iteration.
I did this manually with the auto data where Y is price, X is mpg and Z is headroom.
With each next iteration the residual was getting closer and closer to the residual from the joint regression of price on mpg and headroom.
My questions are:
a) Is it just a coincidence that I obtained convergence, or such an algorithm exists?
b) What is the name of this algorithm?
Related Posts with Sequential partialling out of variables in linear regression: Is there such an algorithm and how is it called?
Convert variables to numeric results in data loss when a regression is runDear all, A dataset with 11 variables was imported to STATA using File -> Import Excel spreadshe…
Creating multiple bootstrapped samplesI'd like to create, say, B=100 bootstrapped samples of a dataset. I was a little surprised to learn …
Keeping the latest date when difference between two dates is 1 or 2 or 0 Hi, I want to retain the latest date when the difference between two BOD meeting dates is 1 or 2 o…
Help needed to estimate a Panel (Longitudinal) Multinomial Logit ModelDear Stata Users, Before explaining my problem, I should say that I have tried Stata's femlogit, cm…
Exporting regressions to excel Effect of various farm practices on crop yield (Kg/Acre) Lentil Lentil green gram gree…
Subscribe to:
Post Comments (Atom)
0 Response to Sequential partialling out of variables in linear regression: Is there such an algorithm and how is it called?
Post a Comment