I am a novice when it comes to MLM, but had to try my best for my master thesis. Hopefully you can help me with my following study:
I conducted a study with n = 56 participants (interpreters). The study offers longitudinal data with three measurement periods (baseline, follow up 1 after 6 months and follow up 2 after 12 months). The outcome variable is: Sum_PCL (PTBS symptoms), the predictor is TP (therapy participation) and the interactions I needed to add are (genderTP, flight experienceTP). My first hypothesis is whether therapy participation is associated with Sum_PCL. The second and third hypothesis tests whether gender and flight experience moderate the association between Sum_PCL and therapy participation.
My supervisor recommended to do MLM (2-level model with participants at level 2 and observations at the three measurement periods at level 1), so here are the R codes I came up with:
#Null model
Nullmodel <- lmer(Sum_PCL ~ 1 + (1 | Participant), data = data1, control = lmerControl(check.nobs.vs.nRE = "ignore"))
summary(Nullmodell)
#Random Intercept
RandomIntercept <- lmer(Sum_PCL ~ TP * measurement period + (1 | Participant), data = data1, , control = lmerControl(check.nobs.vs.nRE = "ignore"))
summary(RandomIntercept)
#Random Slope
RandomSlope <- lmer(Sum_PCL ~ TP * measurement period + (1 + measurement period | Participant), data = data1, control = lmerControl(check.nobs.vs.nRE = "ignore"))
—>the random slope model turned out too complex for the data so we stuck to the random intercept with fixed slope model (i got the following error: boundary (singular) fit: see help('isSingular'))
#Random Intercept - Adding Interactions
RandomInterceptInteraction <- lmer(Sum_PCL ~ TP * measurement period + TP * gender + TP * flight experience + (1 | Participant), data = data1, REML = FALSE, control = lmerControl(optimizer ='optimx', optCtrl=list(method='nlminb')))
summary(RandomInterceptInteraction)
anova(Nullmodel, RandomIntercept, RandomInterceptInteraction)
—> the random intercept interaction model turned out as the best overall model fit (likelihood ratio test), so it was taken for analysis
—> my question: is it ok to add all predictors / interactions at once? Or should I have added them separately in separate models? I found different opinions on the procedure (adding predictors / interactions at once or not). —> in the interaction model: do I have to add the single predictors (gender and flight experience) too as main effects in the code or is it ok just to add them in the interaction? I mean in the R output, the main effect will automatically be reported