📄 stem.hlp
字号:
{smcl}
{* 26nov2005}{...}
{cmd:help stem}{right:dialog: {bf:{dialog stem}}}
{hline}
{title:Title}
{p2colset 5 17 19 2}{...}
{p2col:{hi:[R] stem} {hline 2}}Stem-and-leaf displays{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 13 2}
{cmd:stem}
{varname}
{ifin}
[{cmd:,} {it:options}]
{synoptset 14 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt:{opt p:rune}}do not print stems that have no leaves{p_end}
{synopt:{opt r:ound(#)}}round data to this value; default is {cmd:round(1)}{p_end}
{synopt:{opt d:igits(#)}}digits per leaf; default is {cmd:digits(1)}{p_end}
{synopt:{opt l:ines(#)}}number of stems per interval of 10^{cmd:digits}{p_end}
{synopt:{opt w:idth(#)}}stem width; equal to (10^{cmd:digits})/{opt width}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{opt by} may be used with {opt stem}; see {helpb by}.{p_end}
{title:Description}
{pstd}
{opt stem} displays stem-and-leaf plots.
{title:Options}
{dlgtab:Main}
{phang}
{opt prune} prevents printing any stems that have no leaves.
{phang}
{opt round(#)} rounds the data to this value and displays the
plot in these units. If {opt round()} is not specified,
noninteger data will be rounded automatically.
{phang}
{opt digits(#)} sets the number of digits per leaf. The default is 1.
{phang}
{opt lines(#)} sets the number of stems per every data
interval of 10^{cmd:digits}. The value of {opt lines()} must divide
10^{cmd:digits}; that is, if {cmd:digits(1)} is specified, then {opt lines()}
must divide 10. If {cmd:digits(2)} is specified, then {opt lines()}
must divide 100, etc. Only one of {opt lines()} or {opt width()} may be specified.
If neither is specified, an appropriate value will be set automatically.
{phang}
{opt width(#)} sets the width of a stem. {opt lines()} is equal to
(10^{cmd:digits})/{opt width}, and this option is merely an alternate way of
setting {opt lines()}. The value of {opt width()} must divide 10^{cmd:digits}.
Only one of {opt width()} or {opt lines()} may be specified.
If neither is specified, an appropriate value will be set automatically.
{pstd}
Note: If {opt lines()} or {opt width()} is not specified, {opt digits()} may be
decreased in some circumstances to make a better-looking plot. If {opt lines()}
or {opt width()} is set, the user-specified value of {opt digits()} will not be
altered.
{title:Examples}
{cmd:. stem x}
{txt}Stem-and-leaf plot for x
{res}2* | 11111
2t | 22222333
2f | 444455555
2s | 666
2. | 8889
3* | 001{txt}
{pstd}
Note: The above plot is a 5-line plot ({hi:lines} = 5 and {hi:width} = 2).
{cmd:. stem x, lines(2)}
{txt}Stem-and-leaf plot for x
{res}2* | 11111222223334444
2. | 555556668889
3* | 001{txt}
{pstd}
Note: {hi:stem x, width(5)} will produce the same plot as above.
{cmd:. stem price, lines(1) digits(3)}
{txt}Stem-and-leaf plot for price (Price)
{res}3*** | 299,667,748,799,829,895,984,995
4*** | 099,172,187,195,296,389,453,482,499,504,647,697
5*** | 079,104,799
6*** | 229,295,486,850
7*** | 140
8*** | 129,814
9*** | 735
10*** |
11*** |
12*** | 069{txt}
{cmd:. stem price, lines(1) digits(3) prune}
{txt}Stem-and-leaf plot for price (Price)
{res}3*** | 299,667,748,799,829,895,984,995
4*** | 099,172,187,195,296,389,453,482,499,504,647,697
5*** | 079,104,799
6*** | 229,295,486,850
7*** | 140
8*** | 129,814
9*** | 735
12*** | 069{txt}
{cmd:. stem price, round(100)}
{txt}Stem-and-leaf plot for price (Price)
price rounded to nearest multiple of {res:100}
plot in units of {res:100}
{res}3* | 377889
4* | 00122234555567
5* | 118
6* | 2359
7* | 1
8* | 18
9* | 7
10* |
11* |
12* | 1{txt}
{title:Also see}
{psee}
Manual: {bf:[R] stem}
{psee}
Online: {helpb histogram}, {helpb lv}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -