Function for Medical Decision Analysis. Sensitivity, specificity, positive predictive value, negative predictive value.
decision2(data, gold, goldPositive, newtest, testPositive)
data | The data as a data frame. |
---|---|
gold | . |
goldPositive | . |
newtest | . |
testPositive | . |
A results object containing:
results$cTable | a table |
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$cTable$asDF
if (FALSE) { # example will be added }