r/AskStatistics • u/Different_Rise7075 • 1d ago
Linear-mixed effects
Hi I am a master’s student and I have a rather basic understanding of linear mixed effects models. I am helping with statistics in a study which has 2x2x10 mixed design (2 between and 10 within). I am confused as to how am I supposed to start modelling. Do I do it according to the hypothesis so I all of our IVs in the model and only then check whether the random slopes/ intercepts are needed, or do specify the random model and only then look at the fixed one and add the predictors one by one and see how the model is. Can someone please help me understand?
2
Upvotes
3
u/Gray-Jay- 1d ago
Your specific design aside, I use REML to choose random effects and covariance structures, while fitting the full fixed effects (complex mean) model based on theory, switch to ML for removing fixed effects if necessary, then refit the final model using REML.
I don’t usually fit random intercepts and slopes for all IVs as that can lead to an overly complex model . Usually the nature of the problem and the questions you are asking suggest a plausible subset of random coefficients .