Function for Medical Decision Analysis. Sensitivity, specificity, positive predictive value, negative predictive value.
decision(
data,
gold,
goldPositive,
newtest,
testPositive,
pp = FALSE,
pprob = 0.3,
od = FALSE,
fnote = FALSE,
ci = FALSE,
fagan = FALSE
)
The data as a data frame.
.
.
.
.
.
Prior probability (disease prevalence in the community). Requires a value between 0.001 and 0.999, default 0.300.
Boolean selection whether to show frequency table. Default is 'false'.
.
.
.
A results object containing:
results$text1 | a preformatted | ||||
results$text2 | a html | ||||
results$cTable | a table | ||||
results$nTable | a table | ||||
results$ratioTable | a table | ||||
results$epirTable_ratio | a table | ||||
results$epirTable_number | a table | ||||
results$plot1 | an image |
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$cTable$asDF
as.data.frame(results$cTable)
if (FALSE) {
# example will be added
}