The PLSMOD Procedure

Fitting a PLS Model

To isolate a few underlying spectral factors that provide a good predictive model, you can fit a PLS model to the 16 samples by using the following SAS statements:

proc plsmod data=mycas.sample;
   model ls ha dt = v1-v27;
run;

By default, the PLSMOD procedure extracts at most 15 factors. The default output from this analysis is presented in Figure 1 and Figure 2.

Figure 1 displays the "Model Information," "Dimensions," and "Number of Observations" tables.

The "Model Information" table identifies the data source and shows that the factor extraction method is partial least squares regression (which is the default) and that the nonlinear iterative partial least squares (NIPALS) algorithm (which is also the default) is used to compute extracted PLS factors.

The "Dimensions" table shows the number of response variables, the number of effects, the number of predictor parameters, and the number of factors to extract.

The "Number of Observations" table shows that all 16 of the sample observations in the input data are used in the analysis; all the samples are used because they all contain complete data.

Figure 1: Model Information, Dimensions, and Number of Observations

The PLSMOD Procedure

Model Information
Data SourceSAMPLE
Factor Extraction MethodPartial Least Squares
PLS AlgorithmNIPALS
Validation MethodNone

Dimensions
Number of Response Variables3
Number of Effects27
Number of Predictor Parameters27
Number of Factors15

Number of Observations Read16
Number of Observations Used16


Figure 2 lists the amount of variation, both individual and cumulative, that is accounted for by each of the 15 factors. All the variation in both the predictors and the responses is accounted for by only 15 factors because there are only 16 sample observations. More important, almost all the variation is accounted for by even fewer factors—one or two for the predictors and three to eight for the responses.

Figure 2: PLS Variation Summary

Percentage Variation Accounted for by Partial Least Squares Factors
Number of
Extracted
Factors
Model EffectsResponse Variables
CurrentTotalCurrentTotal
197.4606897.4606841.9154641.91546
22.1829699.6436524.2435566.15900
30.1780699.8217024.5339390.69293
40.1197399.941433.7897894.48271
50.0414699.982891.0045495.48725
60.0105899.993472.2808497.76809
70.0016899.995151.1693598.93744
80.0009758699.996130.5041099.44153
90.0014299.997550.1229299.56446
100.0009703799.998520.1102799.67472
110.0003272599.998840.1522799.82699
120.0002933899.999140.1290799.95606
130.0002479299.999390.0312199.98727
140.0004274299.999810.0065199.99378
150.00018639100.000000.00622100.00000


Last updated: September 17, 2021