extract_pls_vip: Extract VIPs (variable importance in the projection) for a...

View source: R/pls-vip.R

extract_pls_vipR Documentation

Extract VIPs (variable importance in the projection) for a PLS regression model output returned from model fitting with simplerspec::fit_pls()

Description

VIPs are extracted based on the finalModel sublist in the caret::train output contained in the model element of the simplerspec::fit_pls() model output list. The VIPs for derived number of PLS components in the finalModel are computed.

Usage

extract_pls_vip(mout)

Arguments

mout

Model output list returned from simplerspec::fit_pls().

Value

A tibble data frame with columns wavenumber and correponding VIP values in the column vip for the finally chosen PLS regression model at the final number of PLS components.


philipp-baumann/simplerspec documentation built on Oct. 3, 2023, 12:13 p.m.