I am unsure how to best control for baseline levels in a mixed effects models. I've seen several different suggestions and I'm not sure if one option or more correct or appropriate than another.
Lets say I am running analysis for longitudinal study with 3 treatment groups (group 1, group 2, group 3) and three time points (baseline, time 2, time 3) and I want to know how these variables impact our outcome variable Y. Lets say the dataset is configured in the long format like this.
id treatment_group time y
1001 1 1 5
1001 1 2 5
1001 1 3 5
1002 2 1 6
1002 2 2 7
1002 2 3 8
1003 3 1 4
1003 3 2 5
1003 3 3 6
If we wanted to know the effect of treatment group, time, and treatment by time, then we could run the following mixed effects model, however I'm unsure if said model adequately accounts for baseline levels. Based upon the following post, it sounds like this would control for baseline levels due to the fact that the model is a mixed effects model.
Baseline adjustment in mixed models with two assessments
Y = treatment_group + time + treatment*time
I've seen some posts which suggest that we should add a covariate for the baseline level of Y. Some posts also recommend adding a baseline_y by time interaction. Baseline adjustment in mixed models
Y = treatment_group + time + treatment*time + baseline_y
Y = treatment_group + time + treatment*time + baseline_y + baseline_y*time
I've seen another series of posts that recommend changing the dataset and removing the baseline timepoint. From here, we could run a mixed effects model.
Including a baseline covariate in a linear mixed-effects model
id treatment_group time y baseline_y
1001 1 2 5 5
1001 1 3 5 5
1002 2 2 7 6
1002 2 3 8 6
1003 3 2 5 4
1003 3 3 6 4
Y = treatment_group + time + treatment*time + baseline_y
Including a baseline covariate in a linear mixed-effects model
I've seen numerous different posts on this issue and wanted to see if there was any consensus.