Test of Recovery of a Correlation or a Covariance matrix from a Factor Analysis Solution
Test of Recovery of a Correlation or a Covariance matrix from a Factor Analysis Solution
The rRecovery function returns a verification of the quality of the recovery of the initial correlation or covariance matrix by the factor solution.
rRecovery(R, loadings, diagCommunalities =FALSE)
Arguments
R: numeric: initial correlation or covariance matrix
loadings: numeric: loadings from a factor analysis solution
diagCommunalities: logical: if TRUE, the correlation between the initial solution and the estimated one will use a correlation of one in the diagonal. If FALSE (default) the diagonal is not used in the computation of this correlation.
Returns
R: numeric: initial correlation or covariance matrix
recoveredR: numeric: recovered estimated correlation or covariance matrix - difference: numeric: difference between initial and recovered estimated correlation or covariance matrix - cor: numeric: Pearson correlation between initial and recovered estimated correlation or covariance matrix. Computations depend on the logical value of the communalities argument.