The POLYCORR package caught my eye this afternoon as I browsed recent contributions to SSC.
It looks potentially useful, but I thought it might be wise to compare its CIs for Pearson correlations to the CIs from Nick Cox's CORRCI package (ssc). And to this point, I have not been able to coax POLYCORR into giving the same results as CORRCI. This strikes me as problematic, so I thought I should alert others. Here is what I have tried so far.
I tried to tag the author of POLYCORR (Yusuf Toyin Yusuf), but he is not among the Yusufs listed, which suggests he is not a Statalist member.
APPENDIX
Here is my code without the output, in case anyone wants it.
Code:
ssc whatsnew ssc describe polycorr
Code:
. // ssc install corrci
. // ssc install polycorr
. clear
. sysuse auto
(1978 automobile data)
. summarize trunk weight length
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
trunk | 74 13.75676 4.277404 5 23
weight | 74 3019.459 777.1936 1760 4840
length | 74 187.9324 22.26634 142 233
.
. corrci trunk weight length, format(%9.4f)
(obs=74)
correlations and 95% limits
trunk weight 0.6722 0.5242 0.7808
trunk length 0.7266 0.5973 0.8191
weight length 0.9460 0.9154 0.9657
. corrci trunk weight length, format(%9.4f) fisher
(obs=74)
correlations and 95% limits
trunk weight 0.6722 0.5209 0.7790
trunk length 0.7266 0.5940 0.8175
weight length 0.9460 0.9143 0.9653
.
. polycorr trunk weight length
Polychoric, polyserial and Pearson correlations Number of obs = 74
Deletion: listwise Variables = 3
VCE: robust Pairs = 3
------------------------------------------------------------------------------
Variable 1 Variable 2 Type rho Std. err. z [95% CI]
------------------------------------------------------------------------------
trunk weight Pearson 0.6722 0.0614 10.95 0.5518 0.7926
trunk length Pearson 0.7266 0.0593 12.26 0.6104 0.8428
weight length Pearson 0.9460 0.0147 64.49 0.9173 0.9748
------------------------------------------------------------------------------
Bivariate normality: no testable polychoric pairs (2x2 tables have df = 0)
Smallest eigenvalue of R = 0.050578 (positive definite)
. polycorr trunk weight length, cifz
Polychoric, polyserial and Pearson correlations Number of obs = 74
Deletion: listwise Variables = 3
VCE: robust Pairs = 3
------------------------------------------------------------------------------
Variable 1 Variable 2 Type rho Std. err. z [95% CI, Fisher z]
------------------------------------------------------------------------------
trunk weight Pearson 0.6722 0.0614 10.95 0.5336 0.7756
trunk length Pearson 0.7266 0.0593 12.26 0.5885 0.8235
weight length Pearson 0.9460 0.0147 64.49 0.9085 0.9684
------------------------------------------------------------------------------
Bivariate normality: no testable polychoric pairs (2x2 tables have df = 0)
Smallest eigenvalue of R = 0.050578 (positive definite)
APPENDIX
Here is my code without the output, in case anyone wants it.
Code:
// ssc install corrci // ssc install polycorr clear sysuse auto summarize trunk weight length corrci trunk weight length, format(%9.4f) corrci trunk weight length, format(%9.4f) fisher polycorr trunk weight length polycorr trunk weight length, cifz


Comment