getSelectedComponents {mdatools} | R Documentation |
returns number of components depending on a user choice
getSelectedComponents(obj, ncomp = NULL)
obj |
an MDA model or result object (e.g. |
ncomp |
number of components to select, provided by user |
Depedning on a user choice it returns optimal number of component for the model (if use did not provide any value) or check the user choice for correctness and returns it back