Learn R Programming

bda (version 10.1.9)

ppower: Compute the power of an ANOVA-type test for proportions

Description

To compute the power of an ANOVA-type test for proportions. It can be used for the sample size estimation.

Usage

ppower(effect.size, ngroup, n0, n1, range.p, alpha=0.05, gridsize=512)

Arguments

effect.size

Difference between the two proportions

ngroup

Levels of the treatment

n0, n1

Sample sizes.

range.p

Approximate range of the proportion of control group.

alpha

Significance level: experimentwise error rate.

gridsize

A (fine) grid size to compute the power when no (less) prior knowledge about p0 can be used.

Value

The power of the test.

References

Wang, Bin. (TBA).