Using some software packages it is possible to 'regress out confounding variables from the independent variable x
' before plotting x
and y
.
This makes me wonder: When it is motivated to regress out confounders from x
, or both x
and y
, rather than just from y
?
Any pointers on what these different operations mean mathematically, or references, would be very appreciated.