Graphics Reference
In-Depth Information
graph dot wage, over(collgrad) over(occ5) over(urban2) by(union)
If we want to break wage down further
by union , we can use the by(union)
option.
Uses nlsw.dta & scheme vg s1m
nonunion
union
Prof/Mgmt
Prof/Mgmt
Sales
Sales
Rural
Rural
Clerical
Clerical
Labor/Ops
Labor/Ops
Other
Other
Prof/Mgmt
Prof/Mgmt
Sales
Sales
Metro
Metro
Clerical
Clerical
Labor/Ops
Labor/Ops
Other
Other
0
5
10
15
0
5
10
15
mean of wage
not college grad
college grad
Graphs by union worker
graph dot tenure ttl exp, over(occ5) over(urban2)
Consider this dot graph with multiple
y
-variables breaking them down by two
categorical variables using two over()
options. When you have multiple
y
Prof/Mgmt
Sales
Rural
Clerical
Labor/Ops
-variables, you can have a maximum
of two over() options.
Uses nlsw.dta & scheme vg s1m
Other
Prof/Mgmt
Sales
Metro
Clerical
Labor/Ops
Other
0
5
10
15
mean of tenure
mean of ttl_exp
graph dot tenure ttl exp, over(occ5) over(urban2)
by(union)
If we want to break tenure down
further by another categorical variable,
say union ,wecanusethe by(union)
option. Although this example shows
only a single variable in the by()
option, you can specify multiple
variables.
Uses nlsw.dta & scheme vg s1m
nonunion
union
Prof/Mgmt
Prof/Mgmt
Sales
Sales
Rural
Clerical
Rural
Clerical
Labor/Ops
Labor/Ops
Other
Other
Prof/Mgmt
Prof/Mgmt
Sales
Sales
Metro
Clerical
Metro
Clerical
Labor/Ops
Labor/Ops
Other
Other
0
5
10
15
0
5
10
15
mean of tenure
mean of ttl_exp
Graphs by union worker
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