performance.metrics: Performance Metrics of fs.stability or fs.ensembl.stability...

Description Usage Arguments Value Author(s) Examples

Description

This will provide a concise data.frame of confusion matrix and ROC statistics from the results of fs.stability or fs.ensembl.stability.

Usage

1
performance.metrics(fit.model, digits = max(3, getOption("digits") - 3))

Arguments

fit.model

An fs.stability or fs.ensembl.stability object

digits

How many digits to round values

Value

Dataframe of performance statistics by model

Author(s)

Charles E. Determan Jr.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
dat.discr <- create.discr.matrix(
    create.corr.matrix(
        create.random.matrix(nvar = 50, 
                             nsamp = 100, 
                             st.dev = 1, 
                             perturb = 0.2)),
    D = 10
)

vars <- dat.discr$discr.mat
groups <- dat.discr$classes

fits <- fs.stability(vars, 
                     groups, 
                     method = c("plsda", "rf"), 
                     f = 10, 
                     k = 3, 
                     k.folds = 10, 
                     verbose = 'none')

performance.metrics(fits)

cdeterman/OmicsMarkeR documentation built on May 13, 2019, 2:35 p.m.