classres.getPerformance: Calculation of classification performance parameters

Description Usage Arguments Details Value

View source: R/classres.R

Description

Calculates and returns performance parameters for classification result (e.g. number of false negatives, false positives, sn, specificity, etc.).

Usage

1
classres.getPerformance(c.ref, c.pred)

Arguments

c.ref

reference class values for objects (vector with numeric or text values)

c.pred

predicted class values for objects (array nobj x ncomponents x nclasses)

Details

The function is called automatically when a classification result with reference values is created, for example when applying a plsda or simca models.

Value

Returns a list with following fields:

$fn number of false negatives (nclasses x ncomponents)
$fp number of false positives (nclasses x ncomponents)
$tp number of true positives (nclasses x ncomponents)
$sensitivity sn values (nclasses x ncomponents)
$specificity specificity values (nclasses x ncomponents)
$specificity ms ratio values (nclasses x ncomponents)

mdatools documentation built on Sept. 13, 2021, 9:07 a.m.