API Reference

Dichotomous variables

correlation coefficients for dichotomous (binary) variables

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.

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.

ordinalcorr.tetrachoric(x, y)

Estimate the tetrachoric correlation coefficient between two dichotomous variables.

Polytomous variables

correlation coefficients for polytomous (ordered categorical) variables

ordinalcorr.polychoric(x, y)

Estimate the polychoric correlation coefficient between two ordinal variables.

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

ordinalcorr.hetcor(data[, n_unique])

Estimate the heterogeneous correlation matrix.