EconPapers    
Economics at your fingertips  
 

POLYCORR: Stata module to compute polychoric, polyserial and Pearson correlations with a joint covariance matrix, bivariate-normality diagnostics and positive-definite repair

Yusuf Toyin Yusuf ()
Additional contact information
Yusuf Toyin Yusuf: Kwara State University

Statistical Software Components from Boston College Department of Economics

Abstract: polycorr estimates the correlation between every pair of variables in varlist. Each variable is classified as ordinal or continuous. For two ordinal variables it estimates the polychoric correlation, for one ordinal and one continuous variable the polyserial correlation, and for two continuous variables the Pearson correlation. With two categories these become the tetrachoric and biserial correlations. Unlike earlier implementations, polycorr is an e-class estimation command. e(b) holds all k(k-1)/2 correlations and e(V) their joint asymptotic covariance matrix. The covariance matrix is obtained from the influence functions of the two-step estimator, so it allows for the estimated thresholds, means and standard deviations. It can be heteroskedasticity robust, cluster robust or design based (Taylor linearization). It is the matrix needed to compare or test correlations against each other, and to fit ordinal structural equation models by weighted least squares.

Language: Stata
Requires: Stata version 14
Keywords: polychoric correlations; polyserial correlations; Pearson correlations (search for similar items in EconPapers)
Date: 2026-10-30
Note: This module should be installed from within Stata by typing "ssc install polycorr". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/p/polycorr.ado
http://fmwww.bc.edu/repec/bocode/p/polycorr.sthlp
http://fmwww.bc.edu/repec/bocode/p/polyindex.ado
http://fmwww.bc.edu/repec/bocode/p/polyindex.sthlp
http://fmwww.bc.edu/repec/bocode/p/polycorr_examples.do
http://fmwww.bc.edu/repec/bocode/p/polycorr_cert.do

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459953

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-11-02
Handle: RePEc:boc:bocode:s459953