Function for Medical Decision Analysis. Sensitivity, specificity, positive predictive value, negative predictive value.

decision2(data, gold, goldPositive, newtest, testPositive)

Arguments

data

The data as a data frame.

gold

.

goldPositive

.

newtest

.

testPositive

.

Value

A results object containing:

results$cTablea table

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$cTable$asDF

as.data.frame(results$cTable)

Examples

if (FALSE) { # example will be added }