Hello, I am trying to run my error analysis using a logit mixed model. I have installed the lmer test package because I would like to report p-values. I have attached a sample of how my data file is set-up.
e$correct <- as.factor(e$correct) > erranalysis=lmer(correct~task*concrete+task*embodied+ task*symbolic+(1|item)+(1|subject),data=e, family=binomial) I put the dependent variable as "correct" and I added "family=binomial" to specify that the "correct" dependent variable was coded as 1 if the participant had an error and 0 if the participant was correct. However, I am getting the following error message: Error in as(model, "merModLmerTest") : no method or default for coercing “glmerMod” to “merModLmerTes” In addition: Warning messages: 1: In lme4::lmer(formula = correct ~ task * concrete + task * embodied + : calling lmer with 'family' is deprecated; please use glmer() instead 2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, : Model failed to converge with max|grad| = 0.00205133 (tol= 0.001, component 1) Any help would be appreciated. Thank you for your time.
subject,task,concrete,embodied,symbolic,item,correct 2,1,1,1,1,43,1 2,1,1,1,1,42,1 16,1,-1,1,-1,39,1 17,1,-1,1,-1,33,1 19,1,-1,1,-1,37,1 20,1,-1,1,-1,39,1 25,-1,1,1,1,49,1 26,-1,1,1,1,49,1 28,-1,1,1,1,43,1 29,-1,1,1,1,47,1 31,-1,1,1,1,49,1 34,-1,1,1,1,49,1 3,1,1,1,1,46,0 4,1,1,1,1,42,0 4,1,1,1,1,49,0 4,1,1,1,1,41,0 4,1,1,1,1,48,0 4,1,1,1,1,50,0 4,1,1,1,1,46,0 4,1,1,1,1,44,0 4,1,1,1,1,45,0 5,1,1,1,1,49,0 5,1,1,1,1,42,0 5,1,1,1,1,41,0 5,1,1,1,1,47,0 5,1,1,1,1,50,0 5,1,1,1,1,46,0 5,1,1,1,1,48,0 5,1,1,1,1,45,0 6,1,1,1,1,43,0 6,1,1,1,1,48,0 6,1,1,1,1,44,0 6,1,1,1,1,45,0 6,1,1,1,1,41,0 6,1,1,1,1,49,0 6,1,1,1,1,50,0 6,1,1,1,1,42,0 6,1,1,1,1,46,0 6,1,1,1,1,47,0 8,1,1,1,1,48,0