[R-sig-ME] how to get satterthwaite/Kenward-Roger degrees of freedom for heterogeneous-variance one-way ANOVA from an object of nlme::gls
Qiu, Weiliang /US
We|||@ng@Q|u @end|ng |rom @@no||@com
Wed Oct 16 16:42:24 CEST 2024
Greetings. I am using nlme::gls() to perform heterogeneous-variance one-way ANOVA and would like to get type III anova table. It looks like nlme:::anova.gls() does not provide Satterthwaite or Kenward-Roger degree of freedom. Please see below an example.
library(nlme)
res.gls <- nlme::gls(extra ~ group, data = sleep, weights = varIdent(form = ~1|group))
nlme:::anova.gls(res.gls, type = "marginal")
Could you suggest how to get type III anova table with Satterthwaite/Kenward-Roger degree of freedom from an object of nlme::gls()? Thanks!
Best regards,
Weiliang
[[alternative HTML version deleted]]
More information about the R-sig-mixed-models
mailing list