View source: R/plotStability.R
plotStability | R Documentation |
Plot stability of selected variables and prediction fitness as a function of number of repetitions.
plotStability(MUVRrdCVclassObject, model = "min", VAll, nVarLim, missLim)
MUVRrdCVclassObject |
MUVR class object or rdCV object |
model |
'min' (default), 'mid' or 'max' |
VAll |
Option of specifying which variables (i.e. names) to consider as reference set. Defaults to variables selected from the 'model' of the 'MUVRrdCVclassObject' |
nVarLim |
Option of specifying upper limit for number of variables |
missLim |
Option of specifying upper limit for number of misclassifications |
Plot of number of variables, proportion of variables overlapping with reference and prediction accuracy (Q2 for regression; MISS otherwise) as a function of number of repetitions.
data("freelive2")
nRep <- 2
nOuter <- 4
varRatio <-0.6
regrModel <- MUVR2(X = XRVIP2,
Y = YR2,
nRep = nRep,
nOuter = nOuter,
varRatio = varRatio,
method = "PLS",
modReturn = TRUE)
plotStability(regrModel, model = "min")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.