power.binom.test {jmuOutlier} | R Documentation |
Power Calculations for Exact Binomial Test
Description
Compute the power of the binomial test of a simple null hypothesis about a population median.
Usage
power.binom.test(n, alpha = 0.05, alternative = c("two.sided", "less", "greater"),
null.median, alt.pdist, ...)
Arguments
n |
The sample size. |
alpha |
Probability of Type I error. |
alternative |
A character string specifying the alternative hypothesis, and
must be one of |
null.median |
The population median under the null hypothesis. |
alt.pdist |
Name of the cumulative distribution function under the alternative distribution.
Some options include |
... |
Optional arguments to |
Value
Power of the test.
Author(s)
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
References
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
See Also
Examples
# Alternative distribution is Normal( mean=55.7, sd=2.5 ).
power.binom.test( 30, 0.05, "greater", 55, pnorm, 55.7, 2.5 )
# Alternative distribution is Laplace( mean=55.7, sd=2.5 ).
power.binom.test( 30, 0.05, "greater", 55, plaplace, 55.7, 2.5 )