calc.CC: Pearson's Contingency Coefficient for Tables
Description
Compute Pearson's contingency coefficient for an RxC contingency table. $$C = \sqrt{\frac{T}{N + T}}$$, where T = the chi-square test statistic and N = the total sample size.
Usage
calc.CC(x, y = NULL, ...)
## S3 method for class 'default':
calc.CC(x, y = NULL, ...)
Arguments
x
A vector or a matrix.
y
A vector that is ignored if x is a matrix and required if x is a vector.
If we have N observations with two variables where each observation can be classified into one of R mutually exclusive categories for variable one and one of C mutually exclusive categories for variable two, then a cross-tabulation of the data results in a two-way contingency table (also referred to as an RxC contingency table).
A common question with regards to a two-way contingency table is whether we have independence. By independence, we mean that the row and column variables are unassociated (i.e., knowing the value of the row variable will not help us predict the value of column variable and likewise knowing the value of the column variable will not help us predict the value of the row variable).
One criticism of this statistic is that it does not give a meaningful description of the degree of dependence (or strength of association). That is, it is useful for determining whether there is dependence. However, since the strength of that association also depends on the degrees of freedom as well as the value of the test statistic, it is not easy to interpert the strength of association.
References
Agresti, Alan (1996) Introduction to categorical data
analysis. NY: John Wiley and Sons.
Blaikie, N. 2003. Analyzing Quantative Data. London: SAGE.