📄 grmeanby.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help grmeanby} {right:dialog: {bf:{dialog grmeanby}}}
{hline}
{title:Title}
{p2colset 5 21 23 2}{...}
{p2col :{hi:[R] grmeanby} {hline 2}}Graph means and medians by categorical
variables{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmd:grmeanby}
{varlist}
{ifin}
{weight}
{cmd:,} {opt su:mmarize(varname)}
[{it:options}]
{synoptset 22 tabbed}{...}
{synopthdr}
{synoptline}
{syntab :Main}
{p2coldent:* {opth su:mmarize(varname)}}graph mean (or median) of
{it:varname}{p_end}
{synopt :{opt med:ian}}graph medians; default is to graph means{p_end}
{syntab :Plot}
INCLUDE help gr_markopt2
INCLUDE help gr_clopt
{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
*{opt summarize(varname)} is required.
{p_end}
{p 4 6 2}
{opt aweight}s and {opt fweight}s are allowed; see {help weight}.
{p_end}
{title:Description}
{pstd}
{opt grmeanby} graphs the (optionally weighted) means or medians of
{varname} according to the values of the variables in {varlist}. The
variables in {it:varlist} may be string or numerical and, if numerical, may be
labeled.
{title:Options}
{dlgtab:Main}
{phang}
{opth summarize(varname)} is required; it specifies the
name of the variable whose mean or median is to be graphed.
{phang}
{opt median} is optional; it specifies that the graph is to be of medians,
not means.
{dlgtab:Plot}
INCLUDE help gr_markoptf
{phang}
{it:cline_options}
affect the rendition of the lines through the markers; including their
color, pattern, and width;
see {it:{help cline_options}}.
{dlgtab:Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{phang}
{it:twoway_options} are any of the options documented in
{it:{help twoway_options}}, excluding {opt by()}. These include options for
titling the graph (see {it:{help title_options}}) and options for saving the
graph to disk (see {it:{help saving_option}}).
{title:Examples}
{phang}{cmd:. grmeanby foreign rep78 turn, sum(mpg)}{p_end}
{phang}{cmd:. grmeanby foreign rep78 turn, sum(mpg) median}{p_end}
{title:Also see}
{psee}
Manual: {bf:[R] grmeanby}
{psee}
Online: {helpb graph}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -