Hello,

I have noted contradictory advice from statisticians on how to model time-varying covariates in a repeated measures mixed effect model. For instance, you may have BMI measured every month as the exposure and a blood biomarker measured at the same time (or maybe different times) every month as the outcome. If you wanted to determine the effect of BMI throughout the follow-up period then how would you do this?

Some statisticians say you don't do anything differently (at least not in STATA coding) because in long format STATA can determine which variables are level 1 and level 2 by whether or not they vary by time-point. Other statisticans state that you need to create new variables that equate to the between- and within-person effect on the outcome.

Just wondering what you all thought of this.

Thank you,

Spencer

More Spencer Keene's questions See All
Similar questions and discussions