I am analyzing results from a daily diary study in R using the nlme package. I am using hierarchical linear modelling and am not sure which code to use to examine whether the latter model fits better than the previous model.

I tried the code anova (model1,model2) but it is giving me the following error message: Error in anova.lme(Model1.SigControls.IIP, Null.Model.IIP) :

all fitted objects must use the same number of observations

In addition: Warning message:

In anova.lme(Model1.SigControls.IIP, Null.Model.IIP) :

fitted objects with different fixed effects. REML comparisons are not meaningful.

More Alex Chris's questions See All
Similar questions and discussions