The PRINQUAL Procedure

Getting Started: PRINQUAL Procedure

(View the complete code for this example.)

PROC PRINQUAL can be used to fit a principal component model with nonlinear transformations of the variables and graphically display the results. This example finds monotonic transformations of ratings of automobiles.

title 'Ratings for Automobiles Manufactured in 1980';

data cars;
   input Origin $ 1-8 Make $ 10-19 Model $ 21-36
         (MPG Reliability Acceleration Braking Handling Ride
          Visibility Comfort Quiet Cargo) (1.);
   datalines;
GMC      Buick      Century         3334444544
GMC      Buick      Electra         2434453555
GMC      Buick      Lesabre         2354353545
GMC      Buick      Regal           3244443424

   ... more lines ...   

GMC      Pontiac    Sunbird         3134533234
;
ods graphics on;

proc prinqual data=cars plots=all maxiter=100;
   transform monotone(mpg -- cargo);
   id model;
run;

The PROC PRINQUAL statement names the input data set Cars. The ODS GRAPHICS statement, along with the PLOTS=ALL option, requests all graphical displays. The PLOTS=ALL option implies the MDPREF option and requests a PCA plot with the scores (automobiles) represented as points and the structure (variables) represented as vectors. By default, the vector lengths are increased by a factor of 2.5 to produce a better graphical display. If instead you were to specify MDPREF=1, you would get the actual vectors, and they would all be short and would end near the origin where there are a lot of points. It is often the case that increasing the vector lengths by a factor of 2 or 3 makes a better graphical display, so by default the vector lengths are increased by a factor of 2.5. Up to 100 iterations are requested with the MAXITER= option. All of the numeric variable are specified with a MONOTONE transformation, so their original values, 1 to 5, are optimally rescored to maximize fit to a two-component model while preserving the original order. The Model variable provides the labels for the row points in the plot.

The iteration history table is shown in Figure 93.1. The monotonic transformations allow the PCA to account for 5% more variance in two principal components than the ordinary PCA model applied to the untransformed data.

Figure 93.1: Automobile Ratings Iteration History

Ratings for Automobiles Manufactured in 1980

The PRINQUAL Procedure

PRINQUAL MTV Algorithm Iteration History
Iteration
Number
Average
Change
Maximum
Change
Proportion
of Variance
Criterion
Change
Note
10.180871.242190.53742  
20.069160.775030.572440.03502 
30.046530.382370.579780.00734 
40.033870.186820.583000.00321 
50.026610.135060.584840.00185 
60.017300.092130.586000.00115 
70.009690.071070.586600.00061 
80.007050.047980.586850.00025 
90.005440.034820.586990.00014 
100.004420.026410.587080.00009 
110.003630.020620.587140.00006 
120.002980.016430.587170.00004 
130.002450.013250.587200.00002 
140.002010.010770.587210.00002 
150.001650.008800.587230.00001 
160.001360.007210.587230.00001 
170.001120.005910.587240.00001 
180.000920.004850.587240.00000 
190.000750.003990.587240.00000 
200.000620.003280.587250.00000 
210.000510.002690.587250.00000 
220.000420.002210.587250.00000 
230.000350.001820.587250.00000 
240.000280.001490.587250.00000 
250.000230.001230.587250.00000 
260.000190.001010.587250.00000 
270.000160.000830.587250.00000 
280.000130.000680.587250.00000 
290.000110.000560.587250.00000 
300.000090.000460.587250.00000 
310.000070.000380.587250.00000 
320.000060.000310.587250.00000 
330.000050.000250.587250.00000 
340.000040.000210.587250.00000 
350.000030.000170.587250.00000 
360.000030.000140.587250.00000 
370.000020.000120.587250.00000 
380.000020.000100.587250.00000 
390.000010.000080.587250.00000 
400.000010.000060.587250.00000 
410.000010.000050.587250.00000 
420.000010.000040.587250.00000Converged

Algorithm converged.


The PCA biplot in Figure 93.2 shows the transformed automobile ratings projected into the two-dimensional plane of the analysis. The automobiles on the left tend to be smaller than the autos on the right, and the autos at the top tend to be cheaper than the autos at the bottom. The vectors can help you interpret the plot of the scores. Longer vectors show the variables that better fit the two-dimensional model. A larger component of them is in the plane of the plot. In contrast, shorter vectors show the variables that do not fit the two-dimensional model as well. They tend to be located less in the plot and more away from the plot; hence their projection into the plot is shorter. To envision this, lay a pencil on your desk directly under a light, and slowly rotate it up to form a 90-degree angle with your desk. As you do so, the shadow or projection of the pencil onto your desk will get progressively shorter. The results show, for example, that the Chevette would be expected to do well on gas mileage but not well on quiet and acceleration. In contrast, the Corvette and the Firebird have the opposite pattern.

Figure 93.2: Automobile Ratings PCA Biplot

Automobile Ratings PCA Biplot


There are many patterns shown in the transformations in Figure 93.3. The transformation of Braking, for example, is not very different from the original scoring. The optimal scoring for other variables, such as Acceleration and Handling, is binary. Automobiles are differentiated by high versus everything else or low versus everything else.

Figure 93.3: Automobile Ratings Transformations

Automobile Ratings Transformations
External File:images/prqic1.png