Skip to content
Prev 12508 / 20628 Next

anova (lm, lmer ) question

If I understood, the following should have worked?
+ log10(TWA) ~ ns(Wind.Speed,3) + isLamar + isLime1p + isLime5p  + log10(TWAuw)
+ + (1|BiosolidSource) + (1|sample) + (1|sample.trial),
+ REML=F,
+ data=da.regr
+ )
+ log10(TWA) ~ ns(Wind.Speed,3) + isLamar + isLime1p + isLime5p + log10(TWAuw),
+ data=da.regr
+ )
Error in UseMethod("isREML") : 
  no applicable method for 'isREML' applied to an object of class "lm"



-----Original Message-----
From: r-sig-mixed-models-bounces at r-project.org [mailto:r-sig-mixed-models-bounces at r-project.org] On Behalf Of Ben Pelzer
Sent: Saturday, October 04, 2014 10:13 AM
To: r-sig-mixed-models at r-project.org
Subject: Re: [R-sig-ME] anova (lm, lmer ) question

Dear romunov, Ben and Ken,

Thanks for your replies. From these I conclude that:
- for linear (lmer vs. lm) models there's no problem in using the deviance difference
- for generalized  linear models (glmer vs. glm) it's ok to use the deviance difference as long as nAGQ=1.
Would you agree with me? Best regards,

Ben.
On 4-10-2014 2:48, Ben Bolker wrote:
_______________________________________________
R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models