ncomp_opls | R Documentation |
Find the optimal number of OPLS components based on the highest Q2 value.
ncomp_opls(Xi, Yi, prep, nrcv)
Xi |
X matrix N samples x K variables |
Yi |
Y matrix N samples x I variables (currently works only with single Y) |
prep |
preprocessing ("uv" for UV scaling, "mc" for mean centering, "no" for no preprocessing) |
nrcv |
number of folds in cross-validation |
Find the optimal number of OPLS components based on the highest Q2 value.
Output is a list of three elements:
A |
number of correlated components |
ncox |
number of orthogonal components in X |
ncoy |
number of orthogonal components in Y |
E. Nevedmoskaya
Rico Derks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.