a vector of squared multiple correlations. Or, if covar=TRUE, a vector of squared multiple correlations * the item variances
If the matrix is not invertible, then a vector of 1s is returned.
In the case of correlation or covariance matrices with some NAs, those variables with NAs are dropped and the SMC for the remaining variables are found. The missing SMCs are then estimated by finding the maximum correlation for that column (with a warning).