The FACTOR Procedure
Example 43.3 Determining the Number of Factors to Retain
(View the complete code for this example.)
This example uses the data presented in Example 43.1 to demonstrate the following advanced methods that help you determine the number of factors to retain:
minimum average partial correlation (MAP) analysis
parallel analysis
To use these methods, you can specify the MAP option or the PARALLEL option in the PROC FACTOR statement. These options display the results of the requested analysis but do not use the results to determine the number of factors to retain. To use either analysis to determine the number of factors to retain, specify the NFACTORS=name option with the desired argument (MAP, MAP2, MAP4, or PARALLEL). If you do not specify these advanced methods in the NFACTORS= option, the procedure determines the number of factors by using some basic criteria, which are based on the specified or default values of the MINEIGEN=, NFACTORS=n, and PROPORTION= options. For more information, see the section Number of Factors to Retain.
In Example 43.1, the following specification causes PROC FACTOR to retain two factors by the basic criteria:
proc factor data=Socioeconomics
simple corr;
run;
The output shows that:
| 2 factors will be retained by the MINEIGEN criterion. |
This example repeats the analysis by specifying the MAP and parallel analysis options:
ods graphics on;
proc factor data=SocioEconomics
parallel(alpha=0.01 nsims=10000 seed=20170229) map
plots=(parallel map);
run;
ods graphics off;
It would be interesting to see whether these two advanced methods would suggest the same number of factors as that suggested by the default use of the MINEIGEN criterion in Example 43.1.
Parallel Analysis
Parallel analysis compares each of eigenvalues of the input data correlation matrix to an empirical distribution of eigenvalues. Each eigenvalue from the input correlation matrix that exceeds a critical value (based on a one-sided -level) in the corresponding empirical distribution suggests a factor to be retained. For more information, see the PARALLEL option and the section Number of Factors to Retain.
The parallel analysis results are displayed in Output 43.3.1. The output table summarizes the eigenvalues of the input correlation matrix and compares those eigenvalues to the critical values of the parallel analysis. Because the first two eigenvalues of the input correlation matrix exceed their corresponding critical values, the parallel analysis suggests that two factors be retained, in agreement with the number retained by the MINEIGEN= criterion in Example 43.1.
Output 43.3.1: Table of Results for the Parallel Analysis
| Parallel Analysis: NSims=10000 Seed=20170229 | ||
|---|---|---|
| Observed Eigenvalue | Simulated Crit Val | |
| 1 | 2.8733 | 2.6140* |
| 2 | 1.7967 | 1.7174* |
| 3 | 0.2148 | 1.2144 |
| 4 | 0.0999 | 0.8840 |
| 5 | 0.0153 | 0.5776 |
| * Retained Dimension (Obs > Crit, alpha=0.01) | ||
You can use parallel analysis to directly determine the number of factors to retain by specifying NFACTORS=PARALLEL as follows:
proc factor data=SocioEconomics
nfactors=parallel(alpha=0.01 nsims=10000 seed=20170229);
run;
When you request a parallel analysis (using either the PARALLEL option or the NFACTORS=PARALLEL option in the PROC FACTOR statement), you can obtain a graphical summary of the results by also specifying the PLOTS=PARALLEL option. As shown in Figure 12, the scree plot for a parallel analysis contains two lines. The first line is a traditional scree plot and shows the eigenvalues of the sample correlation matrix, sorted in descending order. The second line is constructed from the critical values that are obtained from the parallel analysis. The suggested number of factors to retain is indicated by the intersection of these two lines.
Figure 12: Graphical Summary of the Parallel Analysis

You can manipulate some parallel analysis options to assess the numerical stability of the parallel analysis results. That is, you can specify different values in the ALPHA=p, NSIMS=n, and SEED=n suboptions to determine whether the suggested number of factors would change. For a complete definition of these suboptions, see the PARALLEL option description. You can use the ALPHA=p suboption to adjust how conservative the parallel analysis will be. As p decreases, the critical values in the parallel analysis increase, resulting in a more conservative number of factors suggested by the parallel analysis. You can use the NSIMS=n suboption to balance the trade-off between the accuracy of the simulated critical values and the computational time required for the parallel analysis. For data sets that contain few observations relative to the number of variables, you need to use a larger NSIMS= value to ensure the numerical accuracy of the simulated critical values. Finally, you can specify the SEED= value so that the simulation result of the parallel analysis is reproducible.
Minimum Average Partial Correlation Analysis (MAP)
The MAP computes averages of squared and fourth-powered partial correlations of variables after recursively controlling for the first, second, and so on, principal components. The number of partialled-out components that corresponds to the minimum average of the squared or fourth-powered partial correlations suggests the number of factors to be retained. For more information, see the MAP option and the section Number of Factors to Retain.
The minimum average partial correlation analysis results are displayed in Output 43.3.2. The output table contains the average squared and fourth-powered partial correlations after controlling for the indicated number of principal components. Because the minimum value (for both squared and fourth-powered partial correlations) occurs when two components are partialled out, the MAP analysis suggests that two factors be retained. This is in agreement with the number retained by the MINEIGEN= criterion in Example 43.1.
Output 43.3.2: Table of Results for the MAP
| Average Partial Correlations Controlling Principal Components | ||
|---|---|---|
| N Prin Comp Partialled | Squared | Fourth- Powered |
| 0 | 0.3270 | 0.2151 |
| 1 | 0.4568 | 0.3188 |
| 2 | 0.2400* | 0.0962* |
| 3 | 0.4474 | 0.3470 |
| 4 | 1.0000 | 1.0000 |
| * MAP = Minimum Values in Columns | ||
You can use a MAP analysis to directly determine the number of factors to retain by specifying NFACTORS=MAP2 or NFACTORS=MAP4. For example, the following statements request that the number of factors be determined by identifying the number of controlled principal components that results in the minimum average of the squared partial correlations:
proc factor data=SocioEconomics
nfactors=map2;
run;
When you request a minimum average partial correlation analysis (using either the MAP option or the NFACTORS=MAP2 or NFACTORS=MAP4 option), you can obtain a graphical summary of the results with the PLOTS=MAP option. As shown in Figure 13, the MAP plot provides a visualization of the MAP results that are shown in Output 43.3.2.
Figure 13: Graphical Summary of the MAP
