apaCovars.Fix(Covariances, Threshold)
Excel
=apaCovars.Fix(Covariances, Threshold)Result
Fixes the embedded correlation matrix of a covariance matrix if it is invalid. Spectral method: eigenvalues below the threshold are raised to the threshold.
Syntax
Covariances: covariance matrix
Threshold: optional; minimum eigenvalue of the embedded correlation matrix which is enforced. 0 returns a positive semidefinite, possibly singular matrix. Negative values return the unchanged covariance matrix; default: 0.0001
