This function computes a regularized version of the covariance matrix of the predictors. Among the possible models the one which maximizes BIC is returned.
msir.regularizedSigma(x, inv = FALSE, model = c("XII", "XXI", "XXX"))
the predictors data matrix.
if TRUE
the inverse of the estimated covariance matrix is returned.
available models:
XII |
= | diagonal equal variances |
XXI |
= | diagonal unequal variances |
A \((p \times p)\) covariance matrix estimate.