Reproducing GLMM in R
I have a JASP/R question for you. I'm trying to reproduce results I got from JASP (0.14.1) in R, but I can't seem to get the same results. I'm analyzing categorical accuracy data (Acc: 0 vs 1) where each participant is tested twice (trial factor: let's call it before and after).
In JASP I'm using the generalized linear mixed models module, with all the default settings (Binomal, logit link, type III, likelihood ratio test). Because there are so few trials, only the subject intercepts are included as random effects.
In R, I'm using the following: glmer( Acc ~ Trial + ( 1 | SUB), family = binomial(link="logit"), data=ACData).
For some reason, JASP is giving me a chi-square of 11.76, p < .001, but R is giving me a chi-square of 9.77, p = .0017. I read that JASP is assuming sum contrasts (and not dummy coding), but changing the contrasts in R to (-1,1) doesn't seem to help.
Any thoughts on what I'm doing wrong? Mind you that I am clueless about R. I can post the data of course if needed.