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)
A couple of functions to allow to include a stratifying variables in the sampling strategy used for the selection of optimal number of latent variables. pls_permut_by_groups is a changed version of pls::pls_permutation and find_optimal_comp_groups simply implements the use of pls_permut_by_groups instead of pls::pls_permutation.
Changes included in find_optimal_comp_groups could be incorporated, instead, in find_optimal_components.
A couple of functions to allow to include a stratifying variables in the sampling strategy used for the selection of optimal number of latent variables. pls_permut_by_groups is a changed version of pls::pls_permutation and find_optimal_comp_groups simply implements the use of pls_permut_by_groups instead of pls::pls_permutation. Changes included in find_optimal_comp_groups could be incorporated, instead, in find_optimal_components.