ci.prop2 | R Documentation |
Computes an adjusted Wald confidence interval for a population proportion difference in a 2-group design.
ci.prop2(alpha, f1, f2, n1, n2)
alpha |
alpha level for 1-alpha confidence |
f1 |
number of participants in group 1 who have the attribute |
f2 |
number of participants in group 2 who have the attribute |
n1 |
sample size for group 1 |
n2 |
sample size for group 2 |
Returns a 1-row matrix. The columns are:
Estimate - adjusted estimate of proportion difference
SE - adjusted standard error
LL - lower limit of the adjusted Wald confidence interval
UL - upper limit of the adjusted Wald confidence interval
Agresti2000statpsych
ci.prop2(.05, 35, 21, 150, 150)
# Should return:
# Estimate SE LL UL
# 0.09210526 0.04476077 0.004375769 0.1798348
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.