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