I’m not good in statistics, but I need to build a model in R following the generalised linear model (because my groups are very different in size), and I want to use random intercepts (to allow outcome varies among participants) and random slopes (to allow varying effects in each participant).
I am using glm from lme4 to construct the model, but I don’t know how to indicate both.
Maybe just adding at the end of the model (1|participant) will be enough?
Also, I don’t know if it makes sense to look for random intercept and slope for participants in the same model.
Thank you!!
Childlike Empress is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.