[R] problem with ci for lmer

Xin Shi jasonshi510 at hotmail.com
Thu May 21 12:18:28 CEST 2009


Hi,

I am trying to calculate ci from lmer. However, I have the error message
below:

 

library(gmodels)

library(lme4)

fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)

ci(fm2)

 

Error in as.vector(x, mode) : 

  cannot coerce type 'S4' to vector of type 'any'

In addition: Warning message:

In mean.default(x, na.rm = na.rm) :

  argument is not numeric or logical: returning NA

 

I also tried another example below and got the same problem.

 

y=c(1,0,1,1,0,1,0,1,1,1)

x1=c(1,2,3,4,5,1,2,3,4,5)

x2=c(1.5,2,1.3,3.2,2.7,9.1,5.4,2,4,1)

fit<-lmer(y~x2+(1|x1))

ci(fit)

 

Does anyone know the solution?

 

In addition, I want to do the daily update for R. I run the code below and
it is not working.

 

svn log -v -r HEAD:\{`date +%Y-%m-%d -d'7 days ago'`\}
https://svn.r-project.org/R

 

Does anyone use this code before?

 

Thanks!

 

Xin



More information about the R-help mailing list