Hey Stata List,
I am exploring the difference in school discipline administration on different ethnic groups. I have a dichotomous DV (1 = yes, 2 = no) and a categorical IV (eight categories). I would like to create seven treated groups and one control group (pertaining to White race) to see if disproportionality in school suspension exists between White and non-White school children.
How do I create treated and control groups based on the data snippet below:
Thank you!
I am exploring the difference in school discipline administration on different ethnic groups. I have a dichotomous DV (1 = yes, 2 = no) and a categorical IV (eight categories). I would like to create seven treated groups and one control group (pertaining to White race) to see if disproportionality in school suspension exists between White and non-White school children.
How do I create treated and control groups based on the data snippet below:
Code:
. ssc install dataex checking dataex consistency and verifying not already installed... all files already exist and are up to date. . dataex W1ExcludeYP W1ethgrpYP ----------------------- copy starting from the next line ----------------------------------------- copy up to and including the previous line ------------------ Listed 100 out of 15770 observations Use the count() option to list more .Code:* Example generated by -dataex-. To install: ssc install dataex clear input float W1ExcludeYP int W1ethgrpYP 0 1 0 4 1 2 . 1 0 1 0 1 0 3 0 1 1 1 0 1 0 1 0 1 0 6 0 1 0 1 0 1 0 1 0 3 0 3 0 1 0 1 . 4 0 5 0 1 0 1 0 1 0 3 0 1 0 5 0 1 0 1 0 1 0 6 1 1 1 4 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 8 0 1 0 1 0 1 0 1 0 1 . 1 0 4 0 6 0 1 0 1 0 1 . 4 0 5 0 1 1 6 0 1 0 1 . 7 . 1 0 4 0 5 0 1 0 1 0 7 0 1 0 1 0 1 . 8 1 1 0 1 0 2 0 1 0 1 0 1 0 4 0 1 0 1 0 1 0 1 1 3 1 1 0 1 0 1 0 1 1 4 0 1 0 1 0 4 0 1 . 5 0 3 end label values W1ethgrpYP W1ethgrpYP label def W1ethgrpYP 1 "White", modify label def W1ethgrpYP 2 "Mixed", modify label def W1ethgrpYP 3 "Indian", modify label def W1ethgrpYP 4 "Pakistani", modify label def W1ethgrpYP 5 "Bangladeshi", modify label def W1ethgrpYP 6 "Black Caribbean", modify label def W1ethgrpYP 7 "Black African", modify label def W1ethgrpYP 8 "Other", modify
Comment