| get_safety_of_advice {symptomcheckR} | R Documentation | 
get_safety_of_advice
Description
Calculates the safety of advice for one or multiple symptom checkers
Usage
get_safety_of_advice(
  data,
  triagelevel_correct,
  triagelevel_advice,
  order_triagelevel,
  apps = NULL,
  CI = FALSE
)
Arguments
| data | A dataframe | 
| triagelevel_correct | A string indicating the column name storing the correct triage solutions | 
| triagelevel_advice | A string indicating the column name storing the recommendation of a symptom checker for a case | 
| order_triagelevel | A vector indicating the order of triage levels. The triage level with highest urgency should be the first value and the triage level with lowest urgency the last value. | 
| 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 list containing both a raw number and the percentage of safe advice for one or multiple symptom checkers
Examples
data(symptomcheckRdata)
safety_of_advice <- get_safety_of_advice(
  data = symptomcheckRdata,
  triagelevel_correct = "Goldstandard_solution",
  triagelevel_advice = "Triage_advice_from_app",
  order_triagelevel = c("Emergency", "Non-Emergency", "Self-care"),
  apps = "App_name",
  CI = TRUE
  )
[Package symptomcheckR version 0.1.3 Index]