get_accuracy_by_triage {symptomcheckR}R Documentation

get_accuracy_by_triage

Description

Calculates the accuracy on each triage level for one or multiple symptom checkers

Usage

get_accuracy_by_triage(data, correct, triagelevel, apps = NULL, CI = FALSE)

Arguments

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)

Value

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.

Examples

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
  )

[Package symptomcheckR version 0.1.3 Index]