BMI is always analysed in the form of a categorical variable in medical research. In my Cox regression model, I kept BMI in its original form, i.e., a continuous variable. But the reviewer asked how I can be sure that continuous BMI fits better than categorical BMI. Therefore, I need to test the linearity of BMI. I divided BMI into four sections, but the HRs of BMI in four categories were not significant anymore, while the continuous BMI was statistically significant. Am I in the wrong direction? Are there any better methods to test the linearity of BMI?
1 Answer
BMI might be associated continuously with outcome but not necessarily linearly. The best way to test that is to fit BMI as a continuous predictor flexibly, for example with restricted cubic splines as in the rms
package in R. If you use the tools in that package, then you can use its anova()
function to test the significance of the continuous fit overall and of the non-linear terms in particular.
There is almost never anything to be gained by categorizing a continuous variable. If someone insists that you do it anyway, compare the Akaike Information Criteria (AIC) of the models fit continuously and with categorization. I suspect that the fit will be better with a flexibly fit continuous variable.
One question to consider is whether BMI, itself a derived variable, is useful. It's quite possible that fitting both its components, height and weight, would work better.
-
6$\begingroup$ I'd say there is even an ethical dimension to this question, to use the information available and not degrade it. We don't expect jumps in behaviour at specific levels of BMI. $\endgroup$– Nick CoxCommented Jun 30, 2021 at 13:58
-
$\begingroup$ On BMI as a derived variable, you would also need to include the interaction of height and weight. $\endgroup$– JohnCommented Jun 30, 2021 at 14:06
-
$\begingroup$ I couldn't agree with you anymore! In fact, my paper, which is currently under review, is to provide more evidence that weight is a better predictor than BMI for breast cancer risk. But in that paper, we also pointed out that weight or BMI should be fitted as a continuous variable rather than categorical (we didn't prove that point in that paper, we just fit bmi as a continuous variable and it was statistically significant...so I think it is reasonable that the reviewer asked us to prove that point). $\endgroup$– ZhoufengCommented Jun 30, 2021 at 20:08
-
3$\begingroup$ +1 I like the idea of using something like a spline when the variable is treated as continuous. A common complaint about suggestions not to categorize is that the response might increase, then decrease, the increase as the predictor increases, and the categorized variable will handle that. The spline handles that issue without losing information by categorizing. $\endgroup$– DaveCommented Jun 30, 2021 at 20:39
-
1$\begingroup$ BMI is a horrible model anyway. There is no physical reason to divide mass by the square of the height. From a simple math-modeling point of view it should be mass/height^3, I read a paper some years ago that argued the exponent should be 2.8 or something. In any case, BMI is biased against people whose heights are not near 172 cm. $\endgroup$ Commented Jun 30, 2021 at 22:41