Given a two x two table of counts
This function reproduces the cell entries for specified marginals and then calls the tetrachoric function. (Which was originally based upon John Fox's polychor function.) The phi2poly name will become deprecated in the future.
phi2tetra(ph,m,n=NULL,correct=TRUE)
phi2poly(ph,cp,cc,n=NULL,correct=TRUE) #deprecatedtetrachoric for a discussion.tetrachoric, Yule2phi.matrix, phi2poly.matrixphi2tetra(.3,c(.5,.5))
#phi2poly(.3,.3,.7)Run the code above in your browser using DataLab