plotStability: Plot stability

View source: R/plotStability.R

plotStabilityR Documentation

Plot stability

Description

Plot stability of selected variables and prediction fitness as a function of number of repetitions.

Usage

plotStability(MUVRrdCVclassObject, model = "min", VAll, nVarLim, missLim)

Arguments

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

Value

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.

Examples


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")


MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.