Graphics Reference
In-Depth Information
graph hbox wage, nooutsides note("")
over(collgrad) over(urban2) over(married)
Consider this box graph, which breaks
wages down by three categorical
variables. If we wanted to further break
this down by another categorical
variable, we could not use another
over() option since we can have a
maximum of three over() options with
a single
Rural
single
Metro
Rural
married
-variable. We use the
nooutsides option to suppress the
display of outside values for this graph
and the rest of the graphs in this
section.
Uses nlsw.dta & scheme vg s1m
y
Metro
0
5
10
15
20
hourly wage
not college grad
college grad
graph hbox wage, nooutsides note("")
over(collgrad) over(urban2) over(married) by(union)
If we want to further break prev exp
down by union , we can use the
by(union) option to do this. We also
add the note("") option to suppress
the note saying that the outside values
have been omitted.
Uses nlsw.dta & scheme vg s1m
nonunion
union
Rural
Rural
single
single
Metro
Metro
Rural
Rural
married
married
Metro
Metro
0
5
10
15
20
0
5
10
15
20
hourly wage
not college grad
college grad
Graphs by union worker
graph hbox prev exp tenure, nooutsides note("")
over(urban2) over(married)
Consider this box graph with multiple
y
-variables breaking them down by two
categorical variables using two over()
options. When you have multiple
y
Rural
single
Metro
-variables, you can only have a
maximum of two over() options.
Uses nlsw.dta & scheme vg s1m
Rural
married
Metro
0
5
10
15
20
25
Prev. work exper.
Curr. work exper.
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.
Search WWH ::




Custom Search