PLS Syntax - Example 2: Multivariate Regression with Categorical Predictors

This example illustrates the specification for a PLS multiple regression problem with two dependent variables and categorical predictors. In this example, we also assume that we are interested in the first 10 components of PLS.

Note that brief descriptive comments are enclosed in curly brackets. You can run this example with the example data file Exp.sta.


{ Dependent variable list: }


{ Specification of grouping variables (factors); note that

  optional grouping codes (values) are specified to identify

  the (selected) groups in the categorical predictors. }


            TIME   (1 2 3);

{ Specification of continuous predictor variables (covariates) }


{ Here the bar operator is used to construct the full factorial

  design for the categorical predictor variables; the bar operator

  will evaluate to all main effects and interactions

  between the grouping variables. }


{ The maximum number of components to be extracted is set

   to 10. }

   NCOMPO =10;

For more examples, see PLS Syntax - Examples.