A tutorial R package for illustrating how to fit, evaluate, and report spectra-trait PLSR models. The package provides functions to enhance the base functionality of the R pls package, identify an optimal number of PLSR components, standardize model validation, and vignette examples that utilize datasets sourced from EcoSIS (ecosis.org)
@JulienLamour pointed out here that we are hard-coded a minimum number of obs needed for data split but then provide no error handling when the obs are too low. We should instead either stop and mention that the groups are insufficient or provide a solution, such as putting the obs into either cal or val randomly and then reporting as such since again this is really about selecting cal./val datasets
@JulienLamour pointed out here that we are hard-coded a minimum number of obs needed for data split but then provide no error handling when the obs are too low. We should instead either stop and mention that the groups are insufficient or provide a solution, such as putting the obs into either cal or val randomly and then reporting as such since again this is really about selecting cal./val datasets
https://github.com/TESTgroup-BNL/spectratrait/blob/4e472c6ae0e5833faae7d2f0f2b2fd9a2b48c196/R/create_data_split.R#L30