Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statscraft 0.61.0, release v0.61.0

FACTOR

Factor analysis: principal components and six factoring methods, rotations, factor scores.

Syntax

FACTOR VARIABLES=varlist | MATRIX=IN(COR=* | 'file' | COV=* | 'file' | FAC=* | 'file')
       [/MISSING=[LISTWISE | PAIRWISE | MEANSUB] [INCLUDE]] [/SELECT=var(value)]
       [/ANALYSIS=varlist] [/METHOD=CORRELATION | COVARIANCE] [/MATRIX=OUT(COR | COV | FAC | FSC = file | *)]
       [/PRINT=[DEFAULT] [INITIAL] [EXTRACTION] [ROTATION] [UNIVARIATE] [CORRELATION] [COVARIANCE]
               [SIG] [DET] [INV] [REPR] [AIC] [KMO] [FSCORE] [ALL]]
       [/FORMAT=[SORT] [BLANK(n)] [DEFAULT]] [/DIAGONAL=values | DEFAULT]
       [/PLOT=[EIGEN] [ROTATION[(f1,f2) ...]]]
       [/CRITERIA=[FACTORS(n)] [MINEIGEN(1)] [ITERATE(25)] [ECONVERGE(.001)] [RCONVERGE(.0001)]
                  [KAISER | NOKAISER] [DELTA(0)] [KAPPA(4)] [DEFAULT]]
       [/EXTRACTION=PC | PAF | ALPHA | IMAGE | ULS | GLS | ML]
       [/ROTATION=VARIMAX | EQUAMAX | QUARTIMAX | OBLIMIN[(delta)] | PROMAX[(kappa)] | NOROTATE]
       [/SAVE=[REG | BART | AR] [(n | ALL [rootname])]].

The analysis is of the correlation matrix of the ANALYSIS variables (default all of VARIABLES).

LISTWISE (default) uses the cases valid on every variable of VARIABLES; PAIRWISE each pair’s own cases; MEANSUB puts the mean in place of a missing value. SELECT computes the matrix from the cases with that value (a missing value never matches, a user-missing one does with INCLUDE; SELECT cannot go with MATRIX=IN), while scores are saved for all cases. CRITERIA applies to the EXTRACTION and ROTATION that follow it. The number of factors is FACTORS(n), else the count of eigenvalues above MINEIGEN; FACTORS wins within one CRITERIA, and a MINEIGEN on a later CRITERIA replaces an earlier FACTORS. Without EXTRACTION the extraction is PC with VARIMAX; with EXTRACTION but no ROTATION the factors are not rotated. A later ANALYSIS cancels the PRINT, DIAGONAL, EXTRACTION, ROTATION and SAVE before it, with a warning. Tables: Descriptive Statistics (UNIVARIATE), Correlation Matrix (CORRELATION, SIG, DET), Inverse of Correlation Matrix (INV), Covariance Matrix, KMO and Bartlett’s Test (KMO), Anti-image Matrices (AIC), Communalities, Total Variance Explained, Component or Factor Matrix, Goodness-of-fit Test (ML, GLS), Reproduced Correlations (REPR; Reproduced Covariances with METHOD=COVARIANCE), the rotated matrix with its transformation matrix, or Pattern, Structure and factor correlation matrices for OBLIMIN and PROMAX, Score Coefficient and Score Covariance Matrix (FSCORE). SORT orders the variables by the factor of their largest loading; BLANK(n) leaves out loadings below n in absolute value. SAVE adds scores by regression, Bartlett or Anderson-Rubin, named FAC1_1, FAC2_1 and so on, or rootname1, rootname2. MATRIX=IN reads a matrix file (ROWTYPE_ N, MEAN, STDDEV, CORR or COV, VARNAME_) from the active dataset or a file. Weighted when a weight variable is set. PLOT gives chart data: EIGEN the scree plot, every eigenvalue of the matrix analyzed against its number; ROTATION the loading plot, each variable at its loadings (rotated when there is a rotation) on the first two factors, with the third as depth when there are three or more, or one plot per pair given. METHOD=COVARIANCE analyzes the covariance matrix (with PC, PAF or IMAGE only; it needs the standard deviations in a correlation matrix file): the tables show the raw loadings and communalities beside the rescaled ones, the initial eigenvalues are those of the covariance matrix, MINEIGEN(n) counts in mean variances (mean image variances for IMAGE), and the rotation turns the raw loadings.

MATRIX=OUT(COR=file) or OUT(COV=file) writes the means, standard deviations, counts and the matrix (a file, a dataset or * for the active dataset), OUT(FAC=file) the loadings and OUT(FSC=file) the means, deviations and score coefficients. MATRIX=IN(FAC=file) reads a factor-loading matrix and gives its communalities, variance and loadings and the rotation asked for.

Example

FACTOR VARIABLES=q1 TO q10 /PRINT=INITIAL EXTRACTION ROTATION KMO /FORMAT=SORT BLANK(.3) /CRITERIA=MINEIGEN(1) /EXTRACTION=PC /ROTATION=VARIMAX /SAVE=REG(ALL).

statscraft help FACTOR prints the same text in the terminal. All commands