roc: Receiver-operator characteristic (ROC) curves

rocR Documentation

Receiver-operator characteristic (ROC) curves

Description

ROC curves for out-of-bag random forest predictions.

Usage

roc(x)

## S4 method for signature 'RandomForest'
roc(x)

## S4 method for signature 'list'
roc(x)

## S4 method for signature 'Analysis'
roc(x)

Arguments

x

S4 object of class RandomForest, Analysis or a list

Value

A tibble containing the ROC curves.

Examples

library(metaboData)

x <- analysisData(abr1$neg[,200:300],abr1$fact) %>%
       occupancyMaximum(cls = 'day') %>%
       transformTICnorm()
       
rf <- randomForest(x,cls = 'day')

roc(rf)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.