ci.prop.ps | R Documentation |
Computes an adjusted Wald confidence interval for a difference of population proportions in a paired-samples design. This function requires the frequency counts from a 2 x 2 contingency table for two repeated dichotomous measurements.
ci.prop.ps(alpha, f00, f01, f10, f11)
alpha |
alpha level for 1-alpha confidence |
f00 |
number of participants with y = 0 and x = 0 |
f01 |
number of participants with y = 0 and x = 1 |
f10 |
number of participants with y = 1 and x = 0 |
f11 |
number of participants with y = 1 and x = 1 |
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
Bonett2012statpsych
ci.prop.ps(.05, 12, 4, 26, 6)
# Should return:
# Estimate SE LL UL
# 0.44 0.09448809 0.2548067 0.6251933
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.