Constructing a generalised linear model with random intercepts & random slopes in R
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).