I hope I will get your precious help for my R problem.
I want to study the classroom, the teacher 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 and if the pupils have or not repeated 1 year school on the pupil's success (or not).
The pupil's variables are (fixed effects levels) : the age (11 or 12), the gender (M or F), if they have repeated one year (yes or not), the success (yes or not). The other variables are (random effects levels) : the classroom they belong to (A and B), the teacher they have (K; L; M and N) and the school they belong to (C and D).
Firstly I am looking for the effect of the classroom, the effect of the teacher and the effect of the school on the pupil's success and secondly I want to know the effect of the age, the gender and if the pupils have (or not) repeated one year on the pupil's success.
How can I do my GLMM (hierarchical multilevel model) with R ?
Best,