Re: [R] anova function to test the difference between two coefficients in nlme package

2008-01-22 Thread shirley zhang
Dear Dr. Bates, and R-help, I just found the reason I got the error message is because I copied the code directly from the book. When I tried the code in "~\library\nlme\scripts" under the R installation directory like the following, I got the same answere as in the book. anova(fm2BW.lme, L = c("

[R] anova function to test the difference between two coefficients in nlme package

2008-01-22 Thread shirley zhang
Dear Dr. Bates, and R-help, I've tried the anova function to test the difference between two coefficients, as shown on page 225 of your book "Mixed Effects Models in S and S-Plus (Statistics and Computing)". When I type: anova( fm2BW.lme, L = c(TimeDiet2 = 1, TimeDiet3 = -1) ) I got the follow