Hello all, I have a longitudinal study where participants come in for yearly visits and we assess metabolic outcomes and lifestyle factors as predictor variables. For example, how does sleep relate to BMI. I am trying to set up a proc mixed model but I am not sure how control for the fact that some participants contribute multiple observations to the dataset while others only contribute one. I am not interested in testing the effect of time, but rather how does sleep relate to BMI after controlling for some participants having multiple visits. Here is an example of my code: proc mixed data=a; class id sex visit; model BMI=accel_sleep_duration sex visit child_age / solution; random visit id; run; Any suggestions would be appreciated! Thanks!
... View more