I have a linear mixed model, which uses a multiply imputed dataset. I saw that LRT could be used to assess Fixed effect significance in linear mixed model. I used testmodels
function of the mitml
package (D3
Likelihood ratio test). All the variables are factors
with 1 or 2 levels.
My full model if : Lmer.X2<-with(implist1, lmer(Dependant ~ X1*X2*X4 +(1| Subj))).
QUESTION : What models do I compare to evaluate the significance of a) X2
, b) X2*X1
and c)X1*X2*X4
.
For c): I would have tried to compare to evaluate the main effect of X1*X2*X4
:
Lmer.Full<-with(implist1, lmer(Dependant ~ X1*X2*X4 +(1| Subj))).
Lmer.reduced<-with(implist1, lmer(Dependant ~ X1*X2+X4*X1+X2*X4 +(1| Subj))).
For b), I see two alternatives and I not sure of the proper way to do it, as to evaluate the main effect of X1*X2
.
Lmer.Full<-with(implist1, lmer(Dependant ~ X1*X2*X4 +(1| Subj))).
Lmer.reduced<-with(implist1, lmer(Dependant ~ X4*X1+X2*X4 +(1| Subj))).
OR
Lmer.Full<-with(implist1, lmer(Dependant ~ X1*X2+(1| Subj))).
Lmer.reduced<-with(implist1, lmer(Dependant ~ X1+X2 +(1| Subj))).
For a), I see two alternatives and I not sure of the proper way to do it, as to evaluate the main effect of X2
:
Lmer.Full<-with(implist1, lmer(Dependant ~ X1*X2*X4 +(1| Subj))).
Lmer.reduced<-with(implist1, lmer(Dependant ~ X4*X1 +(1| Subj))).
OR
Lmer.Full<-with(implist1, lmer(Dependant ~ X2+(1| Subj))).
Lmer.reduced<-with(implist1, lmer(Dependant ~ 1 +(1| Subj))).
From my model nested model comparison, for example, I want to be able to say:
The mixed linear regression model results showed a significant effect of
X2
/X1*X2
/X1*X2*X4
(F[df1, df2]=F-statistics],p-value).