Hi,
I am implementing a multi level model in Stata. I have some questions regarding whether the STATA command is right.
I am analysing the use of school discipline and the dependent variable (W1ExcludeYP) is binary, i.e. whether a student received a discipline or not. I want to see how individual (truancy, substance, use, delinquency, poverty, etc.) as well as school level variables (private school vs. public school) and region-level variables (region deprivation) affect the dependent variable, including a random intercept for schools and regions.
Should the command be:
xtmelogit W1ExcludeYP i.W1ethgrpYP i.W1truantYP substance_use delinquency i.in_poverty || school: IndSchool || region: IDACIRSCORE
or
xtmelogit W1ExcludeYP i.W1ethgrpYP i.W1truantYP substance_use delinquency i.in_poverty IndSchool IDACIRSCORE || school: || region:
Also, is there way to speed up getting outputs in Stata when getting results from multilevel regressions
?
I am implementing a multi level model in Stata. I have some questions regarding whether the STATA command is right.
I am analysing the use of school discipline and the dependent variable (W1ExcludeYP) is binary, i.e. whether a student received a discipline or not. I want to see how individual (truancy, substance, use, delinquency, poverty, etc.) as well as school level variables (private school vs. public school) and region-level variables (region deprivation) affect the dependent variable, including a random intercept for schools and regions.
Should the command be:
xtmelogit W1ExcludeYP i.W1ethgrpYP i.W1truantYP substance_use delinquency i.in_poverty || school: IndSchool || region: IDACIRSCORE
or
xtmelogit W1ExcludeYP i.W1ethgrpYP i.W1truantYP substance_use delinquency i.in_poverty IndSchool IDACIRSCORE || school: || region:
Also, is there way to speed up getting outputs in Stata when getting results from multilevel regressions

Comment