# Cramer's $\phi$ for three-way contingency tables

Can Cramer's $\phi$ be determined for three-way contingency tables?

I know how to calculate the expected values, chi squared, and how Cramer's $\phi$ works with two-way contingency tables. However, I'm struggling to understand how the denominator of Cramer's $\phi$ has to be adapted for "three-dimensional" data.

In case it cannot: What alternative measures of association are possible that are normalized to fall within $[0, 1]$ or $(0, 1)$?

Note: I am aware of this and this question. I am interested, however, especially in Cramer's $\phi$ and how to calculate it by hand.

There really isn't a straightforward generalization to Cramer's V, in the same way that Pearson's $\phi$ isn't defined for $2 x 2 .... 2$ tables. This is because there are multiple null models to be selecting from, so a single collapsed relationship statistic is not meaningful.
As an example, say you have a large $\chi^2$ value in your association test. In a $2 x 2$ case this is simple, because the rescaling of the $\chi^2$ to a correlation is still meaningful: one unit of increase has a correlation of $\phi$ with the second variable. However, for a $2 x 2 x 2$ model, a large/significant $\chi^2$ could mean that there are many possible relationships present (V1 with V2, V1 with V3, V2 with V3, or V1 with V2 with V3). So a single number would not capture where this co-relationship is occurring, and hence a single correlation statistic would just be ambiguous. The same principle applies to Cramer's V, where higher dimensional tables are not easily collapsible to single number relationships.
Overall goodness of fit measures that are analogous to $R^2$ in linear regression are possible and several have been proposed (e.g., Pseudo R squared formula for GLMs), though these are not that easily done by hand as they rely on computing log-likelihood/deviation values.
• @MichaelM (B) Agreed, no association in a multiway table is nothing special, and it's analogous to Bartlett's test that $R = I$ for continuous data. (A) Because it relates directly to the question, i.e., how to compute a Cramer's V analogue for higher dimensional tables? Could you perhaps elaborate on what you mean. The second part of my comment about pseudo-R squared measures seems to cover that anyway as it is about descriptive analogues to $R^2$ (which are largely likelihood/model-based, and therefore a hypothesis is implied). – philchalmers Apr 24 '15 at 18:04