perfCalc {netDx}R Documentation

Computes variety of predictor evaluation measures based on the confusion matrix

Description

Computes variety of predictor evaluation measures based on the confusion matrix

Usage

perfCalc(dat)

Arguments

dat

(data.frame): 5 columns: score, tp, fp, tn, fn. One row per cutoff score for feature selection

Value

(list) stats (data.frame): score, f1, ppv, precision and recall. One row per cutoff for feature selection auc (numeric between 0 and 1): AUC of overall ROC curve prauc (numeric between 0 and 1): AUC of overall precision-recall curve

Examples

data(confmat)
x <- perfCalc(confmat)

[Package netDx version 1.1.4 Index]