[R-lang] Contrast coding for a factor with more than 2 levels

2016-09-18 Thread Rachel Ostrand
Hi everyone, I'm having trouble with some 2-factor glmer models that I'm trying to run, such that the model with one of the main effects removed is coming out identical to the full model. Some colleagues suggested that this might be due to the coding of my factors, specifically because I have a fa

[R-lang] Re: Logit mixed model

2016-09-18 Thread John Kingston
Dear Simirtpal, You need to use "glmer" not "lmer" to run such a model. Best, John On 2016-09-18 13:41, Simritpal Malhi wrote: 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

[R-lang] Logit mixed model

2016-09-18 Thread Simritpal Malhi
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+