Description Usage Arguments Value Examples
This function takes two vectors, tabulates 2x2 table, and calculates various accuracy metrics
1 | CalcMetrics(test.vec, truth.vec, control = 0, case = 1)
|
test.vec |
Vector of 0/1 labels of test |
truth.vec |
Vector of 0/1 labels of truth |
control |
Value for control, defaults to 0 |
case |
Value for case, defaults to 1 |
two.by.two: Vector for numbers of TP,FP,TN,FN,N metrics.list: Vector with prev,sens,spec,ppv,npv,fscore,auc of test.vec for truth.vec
1 | CalcMetrics(c(1,0), c(1,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.