Creating PLS Regression Models for Images

In order to create a PLS regression model for an image, a Y-variable must be constructed. The Y-variable denotes an analogous property of the image observations (pixels) as opposed to the dummy variables created for the PLS-DA model. This can be done by adding a new variable to the DataSet.