In my main analysis, I observed that people had better overall performance (0=failed, 1=success) in the manipulation condition than in the control condition. This was a within-subjects design.
This was the model I used:
fit <- glmer(performance~condition + (1|id), data = df, family=binomial())
In the descriptive analysis, I can see that males had better performance than females. I want to examine if that difference is significant, as an exploratory analysis. How can I add gender to the model?
conditionto the model. It would beperformance~condition + gender + (1|id). But it depends on if you want to control forcondition. – geoscience123 Nov 08 '22 at 01:25performance ~ condition * gender + (1|id)? To learn more about interactions and how to interpret them see eg. 1 and 2. – dipetkov Nov 08 '22 at 09:07condition ~ gender + (1|id)? – geoscience123 Nov 08 '22 at 21:59