Description Usage Arguments Value Author(s) References See Also Examples
View source: R/power.binom.test.R
Compute the power of the binomial test of a simple null hypothesis about a population median.
1 2 | power.binom.test(n, alpha = 0.05, alternative = c("two.sided", "less", "greater"),
null.median, alt.pdist, ...)
|
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 |
Power of the test.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
1 2 3 4 5 | # 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 )
|
[1] 0.3321649
[1] 0.570145
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.