I would like to perform a mixed effect linear model with cross-classified data but am struggling to find the correct syntax. The study design has multiple schools in which multiple teachers in that school complete the same assessment on different students in the same school. The assessments were performed at two different timepoints during which the teachers and students are still in the same school but not necessarily paired at both points. If I were interested in student gender as a predictor for the score and want to model school, teacher and student as random effects, what would be the appropriate syntax for doing this? I have tried two different approaches but the "grouping information" output is confusing, making me uncertain which is the correct one.
The first syntax (created based on my reading and understanding of the manual and other examples) was: mixed score gender time || school: || _all: R.teacher || studentID: , covariance(unstructured)
The alternative syntax (generated by the drop down menus) is: mixed score gender time || school: ,covariance(unstructured) || teacher:R. studentID , covariance(identity)
Can you please tell me if either one is correct and if neither, what would be the correct syntax?
Thank you!
The first syntax (created based on my reading and understanding of the manual and other examples) was: mixed score gender time || school: || _all: R.teacher || studentID: , covariance(unstructured)
The alternative syntax (generated by the drop down menus) is: mixed score gender time || school: ,covariance(unstructured) || teacher:R. studentID , covariance(identity)
Can you please tell me if either one is correct and if neither, what would be the correct syntax?
Thank you!
Comment