View source: R/decisioncalculator.h.R
decisioncalculator | R Documentation |
Function for Medical Decision Calculator.
decisioncalculator(
TP = 90,
TN = 80,
FP = 30,
FN = 20,
pp = FALSE,
pprob = 0.3,
fnote = FALSE,
ci = FALSE,
fagan = FALSE
)
TP |
. |
TN |
. |
FP |
. |
FN |
. |
pp |
. |
pprob |
Prior probability (disease prevalence in the community). Requires a value between 0.001 and 0.999, default 0.300. |
fnote |
. |
ci |
. |
fagan |
. |
A results object containing:
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)
# example will be added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.