I'm hoping someone can help me troubleshoot what I suspect is a simple syntax issue.
I'm trying to run a three-level multilevel model with cross-classification using the runmlwin command in Stata, calling MLwiN v3.14. My goal is to calculate the variance components so I can compute intraclass correlation coefficients for the following structure:
- Students (Level 1)
- Nested within Classes (Level 2)
- Teachers are cross-classified at Level 2 (i.e., a class may have multiple teachers and teachers teach multiple classes)
- Schools (Level 3)
runmlwin achievement_score cons,
level3(school_id: )
level2(class_id: )
level2(teacher_id: )
level1(student_id: )
However, I keep getting errors such as:
- command level3() not recognised
- option level1() is required
I’ve already:
- Set the MLwiN path using a global macro (global MLwiN_path)
- Installed MLwiN v3.14
- Installed runmlwin via SSC
Thank you in advance,
Brody