Graph means (medians) by values of other variables [STB-12: gr12] -------------------------------------------------- ^grmeanby^ varlist [weight] [^if^ exp] [^in^ range]^, su^mmarize^(^varname^) ^ [^med^ian graph_options] ^aweight^s and ^fweight^s are allowed. Description ----------- ^grmeanby^ graphs the (optionally weighted) means or medians of varname according to the values of the variables in varlist. Options ------- ^summarize(^varname^)^ is not optional; it specifies the name of the variable whose mean or median is to be graphed. ^median^ specifies the graph is to be of medians, not means. graph_options are any of the options of graph, twoway. Examples ------- . ^grmeanby foreign rep77 rep78 make, sum(mpg)^ . ^grmeanby foreign rep77 rep78 make, sum(mpg) median^ . ^grmeanby foreign rep77 rep78 make, sum(mpg) median ylab^ Also see -------- STB: gr12 (STB-12) On-line: ^help^ for ^graph^