coefa_fixdia {coefa} | R Documentation |
The diagonal of the matrix is replaced by 1 ,so that the matrix can be tested for KMO and Bartlett's test.
coefa_fixdia(x,test=FALSE,sz)
x |
A matrix that needs to replace the value of the diagonal in matrix. |
test |
A logical value.If test=TRUE,KMO and Bartlett's test will be done. |
sz |
The total sample sizes of include studies. |
The diagonal of the similarity matrix will be adjusted by this function, COEFA results will be more accurate, and KMO and Bartlett' Test tests can be carried out.
If test=FALSE,you will obtain a more accurate result without KMO and Bartlett's test. If test= TRUE ,you would obtain a result containing KMO and Bartlett's Test ,similarity matrix fixed.
A matrix or a list containing KMO and Bartlett's test.
#similarity matrix——matrices_acm
fixedsmatrix<-coefa_fixdia(matrices_acm,sz=100)