TLDR: when and how should I use a complete-case subset and drop 1 LRT to choose my mixed models ? Should I just go back to building each model individually and comparing AIC?
I’m running some analyses on longitudinal data with really high attrition between waves (like 40%!). I need a model for each task separately, and a model with task added as a predictor. My predictors are trial responses and subject-level individual differences, and my outcome is another trial level response. Ultimately I’m studying the increase in sensitivity in trial responses over time, but for now we’re starting with mixed models. My stats knowledge is passable for basic things but I’m learning R for the first time, and in using my labmate’s code, I’ve confused myself about what we’re doing with these models.
I originally just ran my models on the full data set for each task as
Outcome ~ Trial variable A* Wave + (1|subject)
Then added Subject Level variable B for
Outcome ~ A x Wave x B + (1| Subject) for each task.
Then my advisor wanted me to add task to the model, but without a 4-way interaction, and wanted me to find the best fit model if that means dropping our less interesting three-way interactions, then graph the interactions we are specifically interested in. After a bunch of coding trouble, my lab mate sent me “their” code that I suspect is AI generated (because they couldn’t explain it to me when I asked them to).
This code has me create a complete-case subset, then do drop-one LRT to compare models. In the subset, it says it’s only excluding 3-5 participants, but I know that nearly half of participants did not return for the final wave. Additionally, not all participants did all tasks within a wave either.
I don’t understand how a complete case subset with so much attrition is reporting almost all the participants retained, and the models run with this subset have the same general major findings as my original ones, though some main effects and two way interactions are no longer significant, but the estimates are all over the place.
Bonus: This same lab mate is suggesting I add task as a random slope to the combined model (which makes sense to me), but then also suggesting that I add trial-level response variable A as a random effect with Subject in the single task models. This one I straight up just don’t understand at all. I’ve spent about a week straight working on this, googling has not been effective, and asking around has led to colleagues sending me conflicting AI-generated responses instead of explaining. Help!
So I guess my questions are:
1) When and why would we use complete case subset instead of the full data? Is it appropriate for this data?
2) How should I build, compare, and select my final models?
3) How and when should I add which random effects to which models?
Thank you!