I want to study the classroom and the school effect/result on the pupil's success (or not) at school. I also want to know the effect of the age, the gender (of the pupils) and if the pupils have or not repeated 1 year school on the pupil's success (or not).
The pupil's variables are : - the age, (11 or 12) - the gender, (male or female) - if they have repeated one year, (yes or not) - the success, (yes or not)
The other variables are : - the classroom they belong to, (A or B) - the school they belong to, (C or D)
I would like to proceed by GLMM, more precisely a multilevel (hierarchical) model using R on my dataset knowing that firstly I am looking for the effect of the classroom and the effect of the school on the pupil's success (or not) and secondly I want to know the effect of the age, the gender and if the pupils have (or not) repeated one year ? Many thanks for your help !