Skip to content
Prev 242 / 20628 Next

random effect variance per treatment group in lmer

Alan,

Thanks for the suggestion.  I noticed the following error msg
for that lmer call:
+ as.numeric(drug=="D") | Patient ) + ( 0 + as.numeric(drug=="P") |
Patient ), data=dat.new ) )
Error: length(term) == 3 is not TRUE

I tried a few changes to the model but the error still exists; I'll 
keep checking.  I assume the rationale for the structure of your lmer
call, where you use as.numeric as opposed to just drug above, is to
insure that
you do not introduce a random effect for drug into the model?

Regards,
Dave