[R] simplifying a lmer model

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Aug 2 19:36:35 CEST 2005


sp219 <S.Pickett at exeter.ac.uk> writes:

> I have been using lmer in lme4() to analyse the effect of dropping a term from 
> the model as below 
> anova.name<-anova(m1,m2)
> Where m1 is an original model and m2 has one term removed. I can then create 
> my own type III tables for each variable in the model. However with many 
> variables this becomes exceedingly time consuming! 
> anova.lme in nlme() and Anova() in car dont seem to work for lme objects 
> created with lmer? Is there any other way to create type III tables?
> Any help much appreciated.
> Simon P

I haven't played nearly as much with lme4 as I perhaps should have,
but my first try would be to see whether drop1 works on lmer models.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list