ci.yule {statpsych} | R Documentation |
Computes a confidence interval for Yule's Q measure of association using a transformation of a confidence interval for an odds ratio with .5 added to each cell frequency. This function requires the frequency counts from a 2 x 2 contingency table for two dichotomous variables.
ci.yule(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 - estimate of Yule's Q
LL - lower limit of the confidence interval
UL - upper limit of the confidence interval
ci.yule(.05, 229, 28, 96, 24) # Should return: # Estimate LL UL # [1,] 0.343067 0.06247099 0.573402