phi(t, digits = 2)The phi coefficient was first reported by Yule (1912), but should not be confused with the Yule Q coefficient.
For a very useful discussion of various measures of association given a 2 x 2 table, and why one should probably prefer the Yule Q coefficient, see Warren (2008).
Given a two x two table of counts
This is in contrast to the Yule coefficient, Q, where \ Q = (ad - bc)/(ad+bc) which is the same as \ [a- (a+b)*(a+c)]/(ad+bc)
Yule, G.U. (1912). On the methods of measuring the association between two attributes. Journal of the Royal Statistical Society, 75, 579-652.
phi2tetra ,Yule, Yule.inv Yule2phi, tetrachoric and polychoricphi(c(30,20,20,30))
phi(c(40,10,10,40))
x <- matrix(c(40,5,20,20),ncol=2)
phi(x)Run the code above in your browser using DataLab