Learn R Programming

MUVR2 (version 0.1.0)

getVIRank: Get variable importance

Description

Extract autoselected variables from MUVR model object.

Usage

getVIRank(MUVRclassObject, model = "mid", n, all = FALSE)

Value

data frame with order, name and average rank of variables (`order`, `name` & `rank`)

Arguments

MUVRclassObject

an object of MUVR class

model

which model to use ("min", "mid" (default), or "max")

n

customize values

all

logical, to get the ranks of all variable or not

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)
getVIRank(regrModel, model="min")
# }

Run the code above in your browser using DataLab