[R] augPred with lme(...,subset=...)

Manuel Morales Manuel.A.Morales at williams.edu
Tue Nov 30 21:12:34 CET 2004


Is there a way to get augPred to work with lme if a subset statement is
used? For example, if I modify the example from ?augPred.lme to include
a subset statement, I get the following error:

fm1 <- lme(Orthodont, random = ~1, subset=distance>19)
augPred(fm1, length.out = 2, level = c(0,1))
Error in tapply(object[[nm]], groups, FUN[["numeric"]], ...) :
        arguments must have same length


More information about the R-help mailing list