Graphics Reference
In-Depth Information
graph bar prev exp tenure ttl exp
You can specify multiple
-variables to
be plotted at one time. Here, we graph
the mean of previous, current, and total
work experience in the same plot. The
bars are plotted touching each other,
and a legend indicates which bar
corresponds to which variable.
Uses nlsw.dta & scheme vg past
y
mean of prev_exp
mean of tenure
mean of ttl_exp
graph bar (median) prev exp tenure ttl exp
This graph is much like the last one,
but it shows the median of these
y
-variables. Note that we only specified
(median) before prev exp but it
applied to all the
-variables that
follow. You can summarize the
y
y
-variables using any of the summary
statistics permitted by the collapse
command (e.g., mean , sd , sum , median ,
and p10 ); see [ R ] collapse .
Uses nlsw.dta & scheme vg past
p 50 of prev_exp
p 50 of tenure
p 50 of ttl_exp
graph bar (median) prev exp tenure (mean) ttl exp
In this example, we get the median of
the first two
y
-variables and then the
mean of the last
-variable. I don't
know, however, how often you would do
this.
Uses nlsw.dta & scheme vg past
y
p 50 of prev_exp
p 50 of tenure
mean of ttl_exp
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