phi
or polychoric correlations.
Yule2phi and Yule2poly convert the Yule Q with set marginals to the correponding phi or tetrachoric correlation.Yule(x,Y=FALSE) #find Yule given a two by two table of frequencies
Yule.inv(Q,m) #find the frequencies that produce a Yule Q given the Q and marginals
Yule2phi(Q,m) #find the phi coefficient that matches the Yule Q given the marginals
Yule2poly(Q,m) #Find the tetrachoric correlation given the Yule Q and the marginals
Warrens, Matthijs (2008), On Association Coefficients for 2x2 Tables and Properties That Do Not Depend on the Marginal Distributions. Psychometrika, 73, 777-789.
phi
, tetrachoric
, Yule2poly.matrix
, Yule2phi.matrix
Nach <- matrix(c(40,10,20,50),ncol=2,byrow=TRUE)
Yule(Nach)
Yule.inv(.81818,c(50,70,60,60))
Yule2phi(.81818,c(50,70,60,60))
Yule2poly(.81818,c(50,70,60,60))
phi(Nach) #much less
Run the code above in your browser using DataLab