API Reference

Dichotomous variables

correlation coefficients for dichotomous (binary) variables

:py:obj:ordinalcorr.biserial <ordinalcorr.biserial>\ (x, y)

Compute the biserial correlation coefficient between a continuous variable x and a dichotomized variable y (0 or 1), assuming y was split from a latent continuous variable.

:py:obj:ordinalcorr.point_biserial <ordinalcorr.point_biserial>\ (x, y)

Compute the point-biserial correlation between a continuous variable x and a dichotomous variable y (0 or 1), assuming y is a true dichotomous variable.

:py:obj:ordinalcorr.tetrachoric <ordinalcorr.tetrachoric>\ (x, y)

Estimate the tetrachoric correlation coefficient between two dichotomous variables.

Polytomous variables

correlation coefficients for polytomous (ordered categorical) variables

:py:obj:ordinalcorr.polychoric <ordinalcorr.polychoric>\ (x, y)

Estimate the polychoric correlation coefficient between two ordinal variables.

:py:obj:ordinalcorr.polyserial <ordinalcorr.polyserial>\ (x, y)

Estimate the polyserial correlation coefficient between a continuous variable x and an ordinal variable y using the two-step maximum likelihood estimation.

Correlation Matrix

:py:obj:ordinalcorr.hetcor <ordinalcorr.hetcor>\ (data[, n_unique])

Estimate the heterogeneous correlation matrix.