Hey y'all,
I'm trying to run a simple multilevel multiple regression in Lavaan, but getting the error:
"
Error: lavaan->lav_data_full():
Some between-level (only) variables have non-zero variance at the
within-level. Please double-check your data.
"
For this model, we have school-level policies predicting a student-level outcome. Within a school, there is no variation in the school policy because the school only has one observation (e.g., 'for the past school year, did you have a typing class?'); how would I specify this kind of model? What I've written is:
level: 1
Student_Outcome ~ 1
level: 2
Student_Outcome ~ School_Policy_1 + School_Policy_2 + School_Policy_3