powered by
Performs power and sample size calculations for a test of equivalence for two proportions. Can solve for power, n1, n.ratio or alpha.
prop.test.equiv( n1 = NULL, n.ratio = 1, p1 = NULL, p2 = NULL, margin = NULL, alpha = 0.05, power = NULL, v = FALSE )
A list of the arguments (including the computed one).
The sample size for group 1.
The ratio n2/n1 between the sample sizes of two groups; defaults to 1 (equal group sizes).
The outcome proportion in group 1.
The outcome proportion in group 2.
The equivalence margin.
The significance level or type 1 error rate; defaults to 0.05.
The specified level of power.
Either TRUE for verbose output or FALSE to output computed argument only.
prop.test.equiv(n1 = NULL, p1 = 0.5, p2 = 0.5, margin = 0.1, alpha = 0.05, power = 0.8)
Run the code above in your browser using DataLab