Download Interaction effects and group comparisons
Transcript
. reg income jobexp black blackjob Source | SS df MS -------------+-----------------------------Model | 11723.42 3 3907.80666 Residual | 28457.8293 496 57.3746558 -------------+-----------------------------Total | 40181.2493 499 80.5235456 Number of obs F( 3, 496) Prob > F R-squared Adj R-squared Root MSE = = = = = = 500 68.11 0.0000 0.2918 0.2875 7.5746 -----------------------------------------------------------------------------income | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------jobexp | .417038 .0791602 5.27 0.000 .2615073 .5725687 black | -5.874446 2.097077 -2.80 0.005 -9.994694 -1.754198 blackjob | -.3719771 .160237 -2.32 0.021 -.6868041 -.0571501 _cons | 24.15976 1.178664 20.50 0.000 21.84397 26.47555 -----------------------------------------------------------------------------. predict whiteline2 if !black (option xb assumed; fitted values) (100 missing values generated) . predict blackline2 if black (option xb assumed; fitted values) (400 missing values generated) 15 20 25 30 35 . label variable whiteline2 "Interaction Line for whites" . label variable blackline2 "Interaction Line for blacks" . twoway connected whiteline2 blackline2 jobexp 0 5 10 jobexp Interaction Line for whites Interaction effects and group comparisons 15 20 Interaction Line for blacks Page 22