VARREDUCE Procedure

Unsupervised Variable Selection

The following statements use PROC VARREDUCE for unsupervised variable selection:

proc varreduce data=mylib.getStarted technique=VarianceAnalysis;
   class C;
   reduce unsupervised C x1-x10 / maxeffects=5 varexp=0.99;
run;

The TECHNIQUE= option in the PROC VARREDUCE statement specifies variance analysis as the technique to be used for variable selection. In the REDUCE statement, the MAXEFFECTS= option specifies 5 as the maximum number of variables to select, and the VAREXP= option specifies 99% as the maximum percentage of the total variance to explain. The procedure stops when either of these two conditions is satisfied.

The output from this analysis is presented in Figure 1 through Figure 3.

Figure 1 displays the "Number of Observations" tables. This table shows that all 100 observations in the data table are used in the analysis.

Figure 1: Number of Observations

The VARREDUCE Procedure

Number of Observations Read100
Number of Observations Used100


Figure 2 and Figure 3 show the "Selection Summary" and "Selected Effects" tables. The "Selection Summary" table shows which variable (or level for CLASS variables) is selected in each step, in addition to showing the total variance that is explained by the variables selected so far. The "Selected Effects" table presents all the selected variables and their corresponding variable types.

Figure 2: Selection Summary

Selection Summary
IterationParameterProportion
of Variance
Explained
SSEMSEAICAICCBIC
1x30.06810218.6379530.1882627.10520027.2163392.971252
2x70.13257917.3484240.1770256.99350226.0940082.945605
3x100.19329316.1341310.1663316.86093724.9454942.919092
4C I0.25288314.9423480.1556496.70419923.7674902.888406
5C F0.31196413.7607280.1448506.52181922.5585282.852077
6C J0.36895112.6209820.1342666.31536121.3201712.811671
7C B0.42572011.4856090.1235016.08109520.0486902.763457
8C G0.48125710.3748610.1127705.81938618.7444492.707799
9C D0.5350989.2980370.1021765.52980317.4070182.644269
10C H0.5889108.2217920.0913535.20678816.0308392.567305
11C A0.6406657.1866980.0807494.85223214.6178012.478801
12x50.6916096.1678150.0700894.45934513.1611172.371965


Figure 3: Selected Effects

Selected Effects
NumberSelected
Variable
Variable
Type
1x3INTERVAL
2x7INTERVAL
3x10INTERVAL
4CCLASS
5x5INTERVAL


Last updated: September 22, 2026