ci mean notvotewoman if education=="Postgraduate degree (MA, MBA, JD, PhD, etc.)" & redgreen=="Red,Green" ci mean notvotewoman if education=="Postgraduate degree (MA, MBA, JD, PhD, etc.)" & redgreen!="Red,Green" ci mean notvoteblack if education=="Postgraduate degree (MA, MBA, JD, PhD, etc.)" & redgreen=="Red,Green" ci mean notvoteblack if education=="Postgraduate degree (MA, MBA, JD, PhD, etc.)" & redgreen!="Red,Green" tab education gen grad = 0 tab education, mi replace grad = 1 if education=="Postgraduate degree (MA, MBA, JD, PhD, etc.)" gen highquality=0 // This line of code is from line 286 of the Bateson 2020 code replace highquality=1 if redgreen=="Red,Green" // This line of code is from line 287 of the Bateson 2020 code prtest highquality, by(grad)