# Including both transformed and original data (untransformed) in a multivariable linear regression.

This may have a quick response (i.e. don't do it).

Just attended a lecture on multivariable linear regression where the outcome is forced expiratory volume (the amount of air you can push out of your lungs in one go). The explanatory variables are age, height, gender and smoking status. In this example, the lecturer finds that height is skewed and therefore transforms the variable to Height^2.

After performing forward selection he ends up with 5 significant explanatory variables in his model: age, height, gender, smoking status and height^2.

My question is: How can you end up with both height^2 and height in your model. Wouldn't they interact (be highly related)? More broadly, when we transform a variable, should the untransformed variable ever be in the model with the transformed?

• There are two ways to think about it. One is to think of it as an interaction with itself. When we use interactions we generally do include the main effects and the interaction term: e.g. stats.idre.ucla.edu/stata/faq/…. Another is to think of it as a polynomial. There is no reason why the relationship should be linear. If a polynomial fits better then why not use it? The Data Generating Process might be non-linear. – Toby May 3 '17 at 11:47
• BTW in this case think of your lungs as two cylinders that are a function of someone's size. The volume of a cylinder is $\pi r^2 h$. People who are taller probably are also larger in other dimensions, they tend to be right?, so the $r$ will be larger. And since the cylinder is a nonlinear function of $r$ it will be a nonlinear function of size. It seems to make sense to me to include height squared. Write it in logs and you have log($\pi r^2 h$) = log(\pi) + log($r^2$) + log($h$). If $h$ and $r$ are both a function of size for which height is a reasonable proxy then this is your model. – Toby May 3 '17 at 11:51
• Using height and height$^2$ is fitting a quadratic in height, other predictors aside. It could be just a way of catching some curvature in the data. There are even cases, e.g. trajectory of a projectile, in which a quadratic is exactly the shape you expect. – Nick Cox May 3 '17 at 15:00
• That's very helpful. I can't see a biological reason to have height#height^2 as an interaction term? I do, however, see why you'd square height in this specific example. My take on his question is, more generally when we transform non-normal covariates, whether we should include both the transformed and original variables in the model? – bobmcpop May 3 '17 at 15:02
• Let say he needed to trasform x, and the best transformation was log(x), would he add both x and log(x) into a model? – bobmcpop May 3 '17 at 15:06

BTW in this case think of your lungs as two cylinders that are a function of someone's size. The volume of a cylinder is $$πr^2h$$. People who are taller probably are also larger in other dimensions, they tend to be right?, so the $$r$$ will be larger. And since the cylinder is a nonlinear function of $$r$$ it will be a nonlinear function of size. It seems to make sense to me to include height squared. Write it in logs and you have $$\log(πr^2 h) = \log(\pi) + \log(r^2) + \log(h)$$. If $$h$$ and $$r$$ are both a function of size for which height is a reasonable proxy then this is your model. – Toby
Toby's argument in comments can be extended this way: often $$r$$ wil be only approximately proportional to $$h$$, $$r$$ wil grow slower (and slower and slower) as $$h$$ grows, so maybe $$r\propto h^\alpha$$ for some $$0<\alpha<1$$ is a better model. That leads to $$y (\text{volume})\propto h^{1+2\alpha}$$ and taking logarithms on both sides leads to a model in only $$\log h$$, where we in addition have an theoretical expectation for the value of slope: $$1+2\alpha$$, so we can see from the fit if this geometrical speculations holds for this case. And no, in this model we do not need $$h$$ untransformed as an additional term.