Computes the tetrachoric correlation matrix. If it is non-positive definite, a nearest positive definite matrix is used.
Useful links