Graphics Reference
In-Depth Information
graph bar ttl exp tenure, over(married) over(urban2)
Consider this bar graph with multiple
y
-variables broken down by two
categorical variables using two over()
options. When you have multiple
y
-variables, you can only have a
maximum of two over() options.
Uses nlsw.dta & scheme vg s1c
single
married
single
married
Rural
Metro
mean of ttl_exp
mean of tenure
graph bar ttl exp tenure, over(married) over(urban2)
by(union)
If we want to further show the previous
graph by another categorical variable,
say union ,wecanusethe by() option.
Uses nlsw.dta & scheme vg s1c
nonunion
union
single
married
single
married
single
married
single
married
Rural
Metro
Rural
Metro
mean of ttl_exp
mean of tenure
Graphs by union worker
graph bar ttl exp tenure, over(married) over(urban2)
by(union, missing )
We can add the missing option to
include a panel for the missing values of
union .
Uses nlsw.dta & scheme vg s1c
nonunion
union
single
married
single
married
single
married
single
married
Rural
Metro
Rural
Metro
(missing)
single
married
single
married
Rural
Metro
mean of ttl_exp
mean of tenure
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