Sample size for a paired-samples superiority or inferiority test of proportions
Source:R/statpsych3.R
size.supinf.prop.ps.Rd
Computes the sample size required to perform a superiority or inferiority test for the difference in population proportions with desired power in a paired-samples design. For a superiority test, specify the upper limit (h) for the range of practical equivalence and specify values of p1 and p2 such that p1 - p2 > h. For an inferiority test, specify the lower limit (-h) for the range of practical equivalence and specify values of p1 and p2 such that p1 - p2 > -h. This function sets the effect size equal to p1 - p2. Set the phi correlation planning value to the smallest absolute value within a plausible range for a conservatively large sample size.