Partial least squared discriminant (PLSDA) analysis for predicting class membership (e.g. species) from spectral data.
PLSDA script: For teratively fitting PLSDA models and choosing the optimal number of components based on Tukey tests.
Example dataset: [PLSDA_dat.csv] containing species identify information and leaf-level spectra.