I have a question about using linear mixed model effects in R using lmer
.
I have a repeated measure experiment with 117 participants. They all perform a task with 5 categories (Prime_Names). The dependent variable is reaction times (Score). I want to compare those 5 categories with each other. There is a lot of missing data so I think a RM anova is not an option.
I have two questions:
- Am I using the correct analysis if I do a linear mixed model effect analysis in R with
lmer
? - I am not sure if my model is completely correct, especially for the random effects. When do you use only "+ (1|Resp_ID)" and when do you use "+ (Prime_Name|Resp_ID)"
Two options:
Option 1:
model <- lmer(Score ~ Prime_Name + (1|Resp_ID), data=df)
Option 2:
model <- lmer(Score ~ Prime_Name + (Prime_Name|Resp_ID), data=df)
Any help will be appreciated.
Thank you