View source: R/pls_permutation.R
pls_permutation | R Documentation |
See Serbin et al. (2019). DOI: https://doi.org/10.1111/nph.16123
pls_permutation(
dataset = NULL,
targetVariable = NULL,
maxComps = 20,
iterations = 20,
prop = 0.7,
verbose = FALSE
)
dataset |
input full PLSR dataset. Usually just the calibration dataset |
targetVariable |
What object or variable to use as the Y (predictand) in the PLSR model? Usually the "inVar" variable set at the beginning of a PLS script |
maxComps |
maximum number of components to use for each PLSR fit |
iterations |
how many different permutations to run |
prop |
proportion of data to preserve for each permutation |
verbose |
Should the function report the current iteration status/progress to the terminal or run silently? TRUE/FALSE. Default FALSE |
output a list containing the PRESS and coef_array. output <- list(PRESS=press.out, coef_array=coefs)
Julien Lamour, Shawn P. Serbin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.