Description Usage Arguments Details Value References See Also Examples
The function plsrauto
performs the partial least squares (PLS) regressions under different combinations of X-variable range and preprocessing method automatically.
1 2 3 4 |
formula |
a model formula like |
data |
an optional data frame with the data to fit the model from. |
testdata |
data set for prediction. |
xrange |
an object of class |
p |
filter order for Savitzky-Golay smoothing (default value is 2). |
n |
filter length (window size) for Savitzky-Golay smoothing (must be odd. default value is 11). |
output |
if |
... |
additional arguments passed to |
Three steps of preprocessing are automatically applied to the X-variable data set.
First, standard normal variate (SNV) is applied or not.
Second, Savitzky-Golay smoothing, 1st derivative or 2nd derivative is applied or not, respectively.
Finally, auto-scaling is applied or not.
Total 16 (2*4*2) kinds of preprocessing methods are applied and the results of PLS regression are returned as an object of class data.frame
.
If output == TRUE
, each PLS regression result is output as PDF and CSV files in one directory.
an object of class data.frame
containing the statistics of PLS regressions under the different combinations of X-variable range and preprocessing method is returned.
Vignette https://www.gitbook.com/book/uwadaira/plsropt_vignette_ver1-2-0
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.