# NOT RUN {
simdat = make.reg.fnc()
require(lme4)
require(lmerTest)
require(optimx)
simdat.lmer = lmer(RT ~ X + Y + Z + (1|Subject) + (1|Item),
control=lmerControl(optimizer="optimx",optCtrl=list(method="nlminb")),
data = simdat)
summary(simdat.lmer)
simdat = make.reg.fnc(learn = TRUE)
simdat.lmer = lmer(RT ~ X + Y + Z + Trial + (1|Subject) + (1|Item),
control=lmerControl(optimizer="optimx",optCtrl=list(method="nlminb")),
data = simdat)
summary(simdat.lmer)
# }
Run the code above in your browser using DataLab