Function for Sequential Testing Analysis. Analyzes how diagnostic accuracy changes when applying two tests in sequence (screening followed by confirmation).
Usage
sequentialtests(
test1_name = "Screening Test",
test1_sens = 0.95,
test1_spec = 0.7,
test2_name = "Confirmatory Test",
test2_sens = 0.8,
test2_spec = 0.98,
strategy = "serial_positive",
prevalence = 0.1,
show_explanation = TRUE,
show_formulas = FALSE,
show_nomogram = FALSE
)
Value
A results object containing:
results$summary_table | a table | ||||
results$individual_tests_table | a table | ||||
results$population_flow_table | a table | ||||
results$explanation_text | a html | ||||
results$formulas_text | a html | ||||
results$plot_nomogram | an image |
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$summary_table$asDF
as.data.frame(results$summary_table)