Hello,

I am using the nlme R package to perform mixed models in the following experimental design:

- Outcome: Continuous variable measured in two points of time (baseline and follow-up).

- Predictor: Continuous variable measured at both visits (baseline and follow-up).

- Visit= Dummy variable: Baseline or Follow-up (0 vs 1)

- ID: Case ID (1 to n)

So, my first step was to reshape my data frame to "long" format. Hence, the "Outcome" and "Predictor" variables contain information of the baseline and follow-up visit. I subsequently determined which random effects fitted better to my outcome with the following code:

model1

Similar questions and discussions