Learn R Programming

MUVR2 (version 0.1.0)

getVar: Get min, mid or max model from Elastic Net modelling

Description

Obtain the min, mid, or max number of variables for an object generated from the rdCVnet() function.

Usage

getVar(
  rdCVnetObject,
  option = c("quantile", "fitness"),
  fit_curve = c("loess", "gam"),
  span = 1,
  k = 5,
  outlier = c("none", "IQR", "residual"),
  robust = 0.05,
  quantile = 0.25
)

Value

a rdCVnet object

Arguments

rdCVnetObject

an object obtained from the rdCVnet() function

option

quantile or fitness: which way to perform variable selection

fit_curve

gam or loess method for fitting the curve in the fitness option

span

parameter for using loess to fit curve in the fitness option: how smooth the curve needs to be

k

parameter for using gam to fit curve in the fitness option

outlier

if remove outlier variables or not. There are 3 options: "none","IRQ", "residual"

robust

if the option is fitness, robust parameter decides how much deviation it is allowed from the optimal perdiction performance for min and max variabel selection

quantile

if the option is quantile, this value decides the cut for the first quantile, ranging from 0 to 0.5

Examples

Run this code
# \donttest{
data("mosquito")
nRep <- 2
nOuter <- 4
varRatio <-0.6
classModel <- MUVR2_EN(X = Xotu,
                       Y = Yotu,
                       nRep = nRep,
                       nOuter = nOuter,
                       DA = TRUE,
                       modReturn = TRUE)
classModel<-getVar(classModel)
# }

Run the code above in your browser using DataLab