Statistics:Multivariate Analysis:Partial Least Squares
Perform Partial Least Squares Regression
Minimum Origin Version Required: 9.1 SR0
This feature is for OriginPro only.
1. pls ix:=1!2[1]:44[20] iy:=1!45[1]:47[20] method:=svd scale:=0 cv:=1 output.stat:=1 output.xw:=1 plot.vip:=1 plot.xload:=1 plot.yload:=1 plot.res:=1;
Please refer to the page for additional option switches when accessing the x-function from script
Input
Range
Specify the input data for independent variables. Note that beginning with Origin 2020b, there is a shortened syntax that follows the form [Book]Sheet!(N1:N2), N1 = the beginning column index and N2 being the ending column index in a contiguous range of columns. More complex strings from non-contiguous data of the form [Book]Sheet!([Book]Sheet!N1:N2,[Book]Sheet!N3:N4) are also possible.
Specify the input data for dependent variables.
Specify the input data of label for observation, the labels will be show in the Score Plots and X-Y Scores Plots in result.
int
Determine whether to predict response from the established partial least square model.
This variable can only be accessed when predict is set to 1. It specifies independent variables for prediction.
Specify the method to compute the extracted factors:
Option list:
You can refer to the Algorithm for Partial Least Squares Method in Origin Help file.
Specify whether to divide independent variables by the standard deviation.
Specify the maximum number of factors to be in the regression model
Specify whether to establish the partial least square regression model using the Cross Validation method.
TreeNode
Specify which quantities to compute and output. Set the value for output.subnode to control the settings. Details on each sub nodes can be found in the Origin Help file
Sub nodes are:
Specify whether to show plots in the PLSn sheet. Set the value for plot.subnode to control the settings. Details on each sub nodes can be found in the Origin Help file
Output
ReportTree
Specify the output range for the partial least squares report.
ReportData
Specify the output range for the options selected in the output tree node.
Specify the output range for the loading values and the X weights.
Specify the output range for the score values and the residual values.
Specify the output range to put the data for the plot.
You can refer to the Origin Help file on this topic for details.
You can refer to the algorithm for PLS in the Origin Help file.
You can refer to this Origin Help file for the reference.