I am trying to compare between 3 groups of participants (90 participants) according to their performance (i.e., correct identification of safety hazards around the home - 0/1) while watching movie footage. Each participant watched the same movie, which contained 40 hazards from different types (5 hazard types).
That is, I am trying to assess performance according to participant's group and hazard type.
My data looks like this:
I am not sure how to structure the model/what to enter as a fixed or random effect.
I am trying to perform a glmm where the ‘group’ is defined as a fixed effect, ‘participant’ is defined as random effect and ‘hazard type’ is defined as repeated measures (as each participant identified several hazards with several hazard types in the movie). I am trying something along the lines of:
m= glmer(performance ~ group + hazard_type + (1 | participant), data=mydata)
Does this model capture what I'm trying to assess? How can I account for the hazard type?
Your suggestions and help are much appreciated.