Skip to contents

The two-by-two table of create_icd11_diagnosis against the full DSM-5-TR PCL-5 diagnosis, in the same shape evaluate_sets returns, so the ICD-11 comparator can be bound to a table of derived combinations.

Usage

icd11_performance(data)

Arguments

data

A data frame with symptom_1 ... symptom_20.

Value

A one-row data frame: set_id (the six ICD-11 items), tp, fn, fp, tn.

Examples

# \donttest{
data(simulated_ptsd_genpop)
prepared <- rename_ptsd_columns(
  simulated_ptsd_genpop[, c("patient_id", paste0("S", 1:20))],
  id_col = "patient_id")
icd11_performance(prepared)
#>          set_id  tp fn fp  tn
#> 1 2_3_6_7_17_18 214 38 45 903
# }