[R] nlme errors ?

Troels Ring tring at mail1.stofanet.dk
Tue Jul 4 23:06:56 CEST 2000


Dear friends. Below is ouput directly from the help on qqnorm.lme.html
It do not seem to work as expected - on win98, R 1.1, although the 
regression is undertaken, so qqnorm
misunderstands, or what ?

library(nlme)
data(Orthodont)
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
# normal plot of standardized residuals by gender
qqnorm(fm1, ~ resid(., type = "p") | Sex, abline = c(0, 1))
Error in as.double.default(y) : (list) object cannot be coerced to vector 
type 14
# normal plots of random effects
qqnorm(fm1, ~ranef(.))
Error in as.double.default(y) : (list) object cannot be coerced to vector 
type 14


Best wishes

Troels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000704/373fed26/attachment.html


More information about the R-help mailing list