Description Usage Arguments Value
View source: R/TMS_Classifier.R
Compute performance indices for a binary classifier, from a vector of observed values and a vector of predictions.
1 | performance(obs = NULL, pred = NULL, CT = NULL, y = "0,1")
|
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. |
An object of class performance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.