prop.paired | R Documentation |
Performs power and sample size calculation for McNemar test of two correlated proportions using normal approximation. Can solve for power, N or alpha.
prop.paired(
N = NULL,
p1 = NULL,
p2 = NULL,
phi = NULL,
paid = NULL,
dpr = NULL,
alpha = 0.05,
power = NULL,
sides = 2,
v = FALSE
)
N |
The sample size; the number of pairs. |
p1 |
The outcome proportion under condition 1. |
p2 |
The outcome proportion under condition 2. |
phi |
The correlation between the two responses from an individual. |
paid |
The smaller of the two discordant probabilities. Either p1, p2 and phi, OR paid and dpr must be specified. |
dpr |
The discordant proportion ratio. Must be greater than or equal to 1. Either p1, p2, and phi, OR paid and dpr must be specified. |
alpha |
The significance level (type 1 error rate); defaults to 0.05. |
power |
The specified level of power. |
sides |
Either 1 or 2 (default) to specify a one- or two- sided hypothesis test. |
v |
Either TRUE for verbose output or FALSE (default) to output computed argument only. |
Either p1, p2 and phi, OR paid and dpr must be specified.
A list of the arguments (including the computed one).
prop.paired(N = NULL, p1 = 0.8, p2 = 0.9, phi = 0, power = 0.9, sides = 2)
prop.paired(N = NULL, paid = 0.08, dpr = 0.18 / 0.08, power = 0.9, sides = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.