Hi,

I am using "lme" to do multilevel model (MLM) in R. I have done the models for intercept and one predictor and wanted to add another predictor, cognition, in the model. After I added it in the model and wanted to use "anova" to compare this new model with the previous model, it couldn't go through and also showed:

"Error in anova.lme(M2, M4) : all fitted objects must use the same number of observations"

I was wondering how I can solve this problem? Thanks!

More Alison Fang-Wei Wu's questions See All
Similar questions and discussions