binom.power {binom}R Documentation

Power curves for binomial parameterizations

Description

Uses Wald statistics to compute power curves for several parameterizations.

Usage

binom.power(p.alt, n = 100, p = 0.5, alpha = 0.05, phi = 1,
            alternative = c("two.sided", "greater", "less"),
            method = c("cloglog", "logit", "probit", "asymp", "lrt", "exact")) 

Arguments

p.alt Probability of success under the alternative hypothesis.
n Vector of number of independent trials in the binomial experiment.
p Probability of success under the null hypothesis.
alpha Type-I error rate.
phi Overdispersion parameter.
alternative Type of alternative hypothesis.
method The method used to compute power.

Details

For derivations see doc/binom.pdf.

Value

The estimated probability of detecting the difference between p.alt and p.

Author(s)

Sundar Dorai-Raj (sdorairaj@gmail.com)

See Also

binom.confint, binom.bayes, binom.logit, binom.probit, binom.coverage

Examples

binom.power(0.95, alternative = "greater")

[Package binom version 1.0-4 Index]