factor_analysis
Run factor analysis or PCA with KMO, Bartlett's test, parallel analysis, rotated loadings, communalities, variance, scree plot, and cross-loading detection.
Instructions
Exploratory factor analysis or principal component analysis. Reports KMO sampling adequacy, Bartlett's test of sphericity, the number of factors suggested by parallel analysis and by the Kaiser criterion, the rotated loading matrix with communalities, variance accounted for, a scree plot, and a list of items that cross-load or fail to load. Leave n_factors empty to use the parallel-analysis suggestion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Dataset name in the session. | |
| type | No | 'efa' for factor analysis or 'pca' for principal components. | efa |
| plots | No | Include a scree plot. | |
| cutoff | No | Loadings below this absolute value are hidden. | |
| digits | No | Decimal places. | |
| method | No | Extraction method for EFA: minres, ml, pa or wls. | minres |
| save_as | No | Name for the solution in the session. | |
| rotation | No | oblimin, promax, varimax, quartimax or none. Oblique rotations allow correlated factors. | oblimin |
| n_factors | No | Number of factors to extract; omit to let parallel analysis decide. | |
| variables | No | Item columns (default: all numeric). |