[R] how to use anova() to test the sum of coefficients in nlme package

From: shirley zhang <shirley0818_at_gmail.com>
Date: Sat, 26 Jan 2008 10:53:59 -0500


Dear R-help,

In nlme package, anova () can be used to test the difference between two coefficients as shown on page 225
of "Mixed Effects Models in S and S-Plus":

anova(fm2BW.lme, L = c("Time:Diet2" = 1, "Time:Diet3" = -1))

Now my question is instead of test the difference between two coefficients, can I use anova to test the significance of the sum of two coefficients, like

anova(fm2BW.lme, L = c("Time:Diet2" = 1, "Time:Diet3" = 1))

Thanks,

Shirley



R-help_at_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. Received on Sat 26 Jan 2008 - 15:57:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Jan 2008 - 16:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive