Download Interaction effects and group comparisons
Transcript
Variables that uniquely identify margins: jobexp black 15 20 Linear Prediction 25 30 35 Adjusted Predictions of black 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 jobexp white black This graph plots the relationship between job experience and income for values of job experience that range between 1 year and 21 years (the observed range in the data). More specifically, because education is also in the model and I specified the atmeans option, it plots the relationship between job experience and income for individuals who have average values of education (13.16 years). I could have used some other value for education but doing so would have simply shifted both lines up or down by the same amount. As you see we get two parallel lines with the black line always 2.55 points below the white line. Doing the same thing for education, . quietly margins black, at (educ = (2(1)21)) atmeans . marginsplot, noci ylabel(#10) scheme(sj) name(intonly_educ) Variables that uniquely identify margins: educ black 5 10 15 Linear Prediction 20 25 30 35 40 45 Adjusted Predictions of black 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 educ white black Interaction effects and group comparisons Page 5