Last chance! 50% off unlimited learning
Sale ends in
The basic factor or principal components model is that a correlation or covariance matrix may be reproduced by the product of a factor loading matrix times its transpose. Find the residuals of the original minus the reproduced matrix. Used by factor.fit
, VSS
, ICLUST
, etc.
factor.residuals(r, f)
rstar is the residual correlation matrix.
A correlation matrix
A factor model matrix or a list of class loadings
Maintainer: William Revelle <revelle@northwestern.edu>
The basic factor equation is
fa
, principal
, VSS
, ICLUST
fa2 <- fa(Harman74.cor$cov,2,rotate=TRUE)
fa2resid <- factor.residuals(Harman74.cor$cov,fa2)
fa2resid[1:4,1:4] #residuals with two factors extracted
fa4 <- fa(Harman74.cor$cov,4,rotate=TRUE)
fa4resid <- factor.residuals(Harman74.cor$cov,fa4)
fa4resid[1:4,1:4] #residuals with 4 factors extracted
Run the code above in your browser using DataLab