> I am trying to decide between using a multiple linear regression or a linear > mixed effects model for my data: > ... > but I keep getting the following error code: > > Error in anova.lmlist (object, ...): > > models were not all fitted to the same size of dataset
anova is defaulting to anova.lm, and that doesn't expect a mixed effects model. Switch them round to put model2 first: anova (model2, model1) S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}} ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.