Learn R Programming

symptomcheckR (version 0.1.3)

get_item_difficulty: get_item_difficulty

Description

Calculates the item difficulty for each case / vignette

Usage

get_item_difficulty(data, correct, vignettes)

Value

A data frame object containing the item difficulty for each vignette

Arguments

data

A dataframe

correct

A string indicating the column name storing if the symptom checker solved the case (TRUE or FALSE)

vignettes

A string indicating the column name storing the vignette or vignette number

Examples

Run this code
data(symptomcheckRdata)
item_difficulty <- get_item_difficulty(
  data = symptomcheckRdata,
  correct = "Correct_Triage_Advice_provided_from_app",
  vignettes = "Vignette_id"
  )

Run the code above in your browser using DataLab