2009/9/5 Henrique Dallazuanna <www...@gmail.com> > > Try this: > anova(myModels[[1]],myModels[[2]]) > > do.call(anova, myModels)
Does this work for you? Both functions are failing here: > anova(myModels[[1]],myModels[[2]]) Error in names(mods) <- sapply(as.list(mCall)[c(FALSE, TRUE, modp)], as.character) : 'names' attribute [6] must be the same length as the vector [2] > do.call(anova, myModels) Error in as.character.default(X[[1L]], ...) : no method for coercing this S4 class to a vector ______________________________________________ R-help@r-project.org mailing list 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.