samplePowerBinomial: Compute the power of the binomial proportions test for a...

Description Usage Arguments See Also Examples

Description

Compute the power of the binomial proportions test for a given sample size (n) with specified beta priors

Usage

1
2
samplePowerBinomial(n, a1, b1, a2, b2, a = a1, b = b1, pi0 = 0.5,
  pi1 = 1 - pi0, c = 1)

Arguments

n

the sample size

a1

alpha, the hyperparameter of the beta distribution of the first poisson rate

b1

beta, the hyperparameter of the beta distribution of the first poisson rate

a2

alpha, the hyperparameter of the beta distribution of the second poisson rate

b2

beta, the hyperparameter of the beta distribution of the second poisson rate

a

alpha, the hyperparameter of the beta distribution under the null

b

beta, the hyperparameter of the beta distribution under the null

pi0

the prior probability of the null hypothesis

pi1

the prior probability of the alternative hypothesis

c

relative loss constant (loss due to type II error divided by loss due to type I error)

See Also

samplePower, samplePowerEst, findSize

Examples

1
2
3
4
5
6
7
## Not run: 

# see ?samplePower



## End(Not run)

dkahle/bayesRates documentation built on May 15, 2019, 9:07 a.m.