factoran
statistics: loadings = factoran (X, nfac)
statistics: [loadings, specvar] = factoran (X, nfac)
statistics: [loadings, specvar, fscores] = factoran (X, nfac)
Perform principal axis factor analysis on data matrix.
loadings = factoran (X, nfac)
performs principal
axis factoring to extract nfac factors from the data
matrix X, where rows correspond to observations and columns to
variables. The output loadings is a matrix
whose columns contain the loadings on each factor, in decreasing order of
importance.
[loadings, specvar] = factoran (…)
also returns a
vector specvar containing the specific variances (unique
variances) for each variable.
[loadings, specvar, fscores] = factoran (…)
also returns the matrix fscores of estimated
factor scores, computed using the regression method.
The analysis is performed on the correlation matrix of the standardized X. Initial communalities are set to 1. Iterations continue until the maximum change in communality is less than 1e-4 or 50 iterations are reached. The sign of each loading vector is chosen so that the element with largest absolute value is positive.
See also: barttest, pca, pcacov, pcares
Source Code: factoran
x = [ 7 26 6 60; 1 29 15 52; 11 56 8 20; 11 31 8 47; 7 52 6 33; 11 55 9 22; 3 71 17 6; 1 31 22 44; 2 54 18 22; 21 47 4 26; 1 40 23 34; 11 66 9 12; 10 68 8 12 ]; [loadings, specvar, fscores] = factoran (x, 2); warning: factoran: did not converge in 50 iterations. warning: called from factoran at line 101 column 5 build_DEMOS at line 94 column 11 function_texi2html at line 114 column 5 package_texi2html at line 300 column 9 warning: factoran: non-positive specific variance, scores may be unreliable. warning: called from factoran at line 119 column 7 build_DEMOS at line 94 column 11 function_texi2html at line 114 column 5 package_texi2html at line 300 column 9 |