I am making a linear mixed effects model that is installed by REML in the nlme package. And these are the codes that work for me:
What I really would like to do is have a model with a speaker and an object as random effects separately. I tried using this formula:
x4 <- lme (DV ~ IV1 + IV2 + IV1*IV2, data=a.frame, random=~1|speaker + 1|item)
However, this formula gives me the following warning message:
Warning message: In Ops.factor(speaker, 1) : + not meaningful for factors
Do you have any idea what this means? And how can I put both the speaker and the subject as random effects separately?
random r nlme
user3288202
source share