View source: R/get_accuracy_by_triage.R
get_accuracy_by_triage | R Documentation |
Calculates the accuracy on each triage level for one or multiple symptom checkers
get_accuracy_by_triage(data, correct, triagelevel, apps = NULL, CI = FALSE)
data |
A dataframe |
correct |
A string indicating the column name storing if the symptom checker solved the case (TRUE or FALSE) |
triagelevel |
A string indicating the column name storing the correct triage solutions |
apps |
A string indicating the column name storing the app names (optional) |
CI |
A Boolean (TRUE or FALSE) indicating whether 95% confidence intervals should be output (optional) |
A data frame object containing the accuracy on each triage level (of one or multiple symptom checkers) or the accuracy of multiple symptom checkers. Use the apps argument to calculate this metric for multiple symptom checkers.
data(symptomcheckRdata)
accuracy_by_triage <- get_accuracy_by_triage(
data = symptomcheckRdata,
correct = "Correct_Triage_Advice_provided_from_app",
triagelevel = "Goldstandard_solution",
apps = "App_name",
CI = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.