📄 bitest.hlp
字号:
{smcl}
{* 25jan2005}{...}
{cmd:help bitest}, {cmd:help bitesti} {right:dialogs: {bf:{dialog bitest}} {bf:{dialog bitesti}}}
{hline}
{title:Title}
{p2colset 5 19 21 2}{...}
{p2col :{hi:[R] bitest} {hline 2}}Binomial probability test{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 15 2}
{cmd:bitest}
{varname} {cmd:==} {it:#p} {ifin} {weight}
[{cmd:,} {opt d:etail}]
{p 8 16 2}
{cmd:bitesti}
{it:#N} {it:#succ} {it:#p} [{cmd:,} {opt d:etail}]
{phang}
{opt by} may be used with {cmd:bitest} (but not with {cmd:bitesti}); see
{help by}.
{phang}
{opt fweight}s are allowed with {cmd:bitest}; see {help weight}.
{title:Description}
{pstd}
{cmd:bitest} performs exact hypothesis tests for binomial random variables.
The null hypothesis is that the probability of a success on a single trial is
{it:#p}. The total number of trials is the number of nonmissing values of
{it:varname} (in {cmd:bitest}) or {it:#N} (in {cmd:bitesti}). The number of
observed successes is the number of 1s in {it:varname} (in {cmd:bitest}) or
{it:#succ} (in {cmd:bitesti}). {it:varname} must contain only 0s, 1s, and
missing.
{pstd}
{cmd:bitesti} is the immediate form of {cmd:bitest}; see {help immed} for a
general introduction to immediate commands.
{title:Option}
{dlgtab:Advanced}
{phang}
{opt detail} shows the probability of the observed number k_obs of successes,
the probability of the number k_opp of successes on the opposite tail of the
distribution that is used to compute the two-sided p-value, and the
probability of the point next to k_opp. This information can be safely
ignored.
{title:Examples}
{phang}{cmd:. bitest c_rate == 0.3}
{phang}{cmd:. bitest quick == 0.3, detail}
{phang}{cmd:. bitesti 10 3 .5}
{phang}{cmd:. bitesti 2500000 36 .000001}
{title:Also see}
{psee}
Manual: {bf:[R] bitest}
{psee}
Online: {helpb ci}, {helpb prtest}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -