Description Usage Arguments Value Author(s)

View source: R/local_helpers.R

internal

1 | ```
get_wapls_weights(pls_model, original_x, type = "w1", new_x = NULL, pls_c)
``` |

`pls_model` |
either an object returned by the |

`original_x` |
the original spectral matrix which was used for calibrating the pls model. |

`type` |
type of weight to be computed. The only available option (for
the moment) is |

`new_x` |
a vector of a new spectral observation. When "w1" is selected, new_x must be specified. |

`pls_c` |
a vector of length 2 which contains both the minimum and maximum number of PLS components for which the weights must be computed. |

`get_wapls_weights`

returns a vector of weights for each PLS
component specified

Leonardo Ramirez-Lopez and Antoine Stevens

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.