Graphics Reference
In-Depth Information
twoway (scatter ownhome borninstate, text(43 40 "DC", placement(ne)))
(lfit ownhome borninstate) (lfit ownhome borninstate if stateab !="DC",
text(72 50 "Without DC") text(60 50 "With DC")
), legend(off)
This graph turns the legend off and
uses the
text()
option to label each
regression line to indicate which
regression line includes
DC
and which
excludes
DC
.
Uses allstatesn.dta & scheme vg teal
80
Without DC
70
60
With DC
50
DC
40
40
50
60
70
80
% born in state of residence
twoway (scatter ownhome borninstate, text(43 40 "DC", placement(ne)))
(lfit ownhome borninstate) (lfit ownhome borninstate if stateab !="DC",
text(71 50 "Without DC") text(60 50 "With DC")
text(50 70 "Coef with DC .16" "Coef without DC .44")
), legend(off)
This graph adds explanatory text
showing the regression coecient with
and without
DC
.
Uses allstatesn.dta & scheme vg teal
80
Without DC
70
60
With DC
Coef with DC .16
Coef without DC .44
50
DC
40
40
50
60
70
80
% born in state of residence
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.