get_weights | R Documentation |
This is an internal function that computes the wights required for obtaining each vector of pls scores. Implementation is done in C++ for improved performance.
get_weights(X, Y, algorithm = "pls", xls_min_w = 3L, xls_max_w = 15L)
X |
a numeric matrix of spectral data. |
Y |
a matrix of one column with the response variable. |
algorithm |
a character string indicating what method to use. Options are:
|
xls_min_w |
an integer indicating the minimum window size for the "xls"
method. Only used if |
xls_max_w |
an integer indicating the maximum window size for the "xls"
method. Only used if |
a matrix
of one column containing the weights.
Leonardo Ramirez-Lopez and Claudio Orellano
Shenk, J. S., & Westerhaus, M. O. (1991). Populations structuring of near infrared spectra and modified partial least squares regression. Crop Science, 31(6), 1548-1555.
Westerhaus, M. (2014). Eastern Analytical Symposium Award for outstanding Wachievements in near infrared spectroscopy: my contributions to Wnear infrared spectroscopy. NIR news, 25(8), 16-20.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.