performance: Evaluate classifier performances

Description Usage Arguments Value

View source: R/TMS_Classifier.R

Description

Compute performance indices for a binary classifier, from a vector of observed values and a vector of predictions.

Usage

1
performance(obs = NULL, pred = NULL, CT = NULL, y = "0,1")

Arguments

obs

Vector of observed values.

pred

Vector of predicted values.

CT

An object of class "table". Alternatively to the vectors of observed and predicted values, the user could provide a 2x2 contingency table.

y

Outcome encoding. Use "0,1" ("1,2") if the binary encoding is 0 (1) for controls and 1 (2) for cases.

Value

An object of class performance.


fernandoPalluzzi/tmsClassifier documentation built on Feb. 3, 2021, 12:31 p.m.