Comparison of two proportions (e.g. responder rates), via the normal
approximation with unequal allocation; matches stats::power.prop.test
in the balanced case.
Usage
sampleSizeBinary(
p1,
p2,
power = 0.8,
sig_level = 0.05,
ratio = 1,
sides = 2L,
dropout = 0,
cluster_size = NULL,
icc = NULL
)Arguments
- p1
Control-arm proportion.
- p2
Treatment-arm proportion.
- power, sig_level, ratio, sides, dropout, cluster_size, icc
As in
sampleSizeContinuous().