Hi All.

I'm trying to run a simple model from Baayan, Davidson, & Bates and getting
a confusing error message.  Any ideas what I'm doing wrong here?

# Here's the data.....
Subj    <- factor(rep(1:3,each=6))
Item    <- factor(rep(1:3,6))
SOA     <- factor(rep(0:1,3,each=3))
RT      <-
c(466,520,502,475,494,490,516,566,577,491,544,526,484,529,539,470,511,528)
priming <- data.frame(cbind(Subj,Item,SOA,RT))

str(priming)
'data.frame':   18 obs. of  4 variables:
 $ Subj: num  1 1 1 1 1 1 2 2 2 2 ...
 $ Item: num  1 2 3 1 2 3 1 2 3 1 ...
 $ SOA : num  1 1 1 2 2 2 1 1 1 2 ...
 $ RT  : num  466 520 502 475 494 490 516 566 577 491 ...

#Here's the call taken directly from the paper
priming.lmer1 <- lmer(RT ~ SOA + (1 | Item) + (1 | Subj), data = priming)

#Here's the error....
Error in rbind(Item = <S4 object of class "dgCMatrix">, Subj = <S4 object of
class "dgCMatrix">) :
        cannot coerce type S4 to list vector

Any idea what I'm doing wrong?


sessionInfo()
R version 2.5.0 (2007-04-23)
i386-pc-mingw32
other attached packages:
       lme4      Matrix     lattice        nlme
"0.9975-13" "0.99875-1"    "0.15-4"    "3.1-80"

Rick DeShon

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to