Learn R Programming

MUVR2 (version 0.1.0)

plotStability: 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)

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.

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

Examples

Run this code
# \donttest{
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")
# }

Run the code above in your browser using DataLab