{
  "test_id": "roc_auc",
  "test_label": "ROC curve / AUC",
  "n": 240,
  "statistic": 0.77028135509802309,
  "parameter": "NA",
  "p_value": "NA",
  "estimate": 0.77028135509802309,
  "conf_int": [0.70599784925176245, 0.83456486094428373],
  "effect_size": {
    "name": "AUC",
    "value": 0.77028135509802309,
    "ci": [0.70599784925176245, 0.83456486094428373],
    "ci_level": 0.94999999999999996
  },
  "seed_used": 20261101,
  "assumptions": [
    {
      "id": "sample_size",
      "check": "sample size",
      "statistic": 240,
      "p_value": "NA",
      "passed": true,
      "note": "adequate n"
    }
  ],
  "warnings": [],
  "flags": [],
  "test_label_i18n": {
    "key": "test.roc_auc.label"
  },
  "alpha": 0.050000000000000003,
  "sidedness": "not_applicable",
  "estimate_label": "AUC",
  "imputation": {
    "strategy": "complete_case",
    "n_rows": 240,
    "n_dropped": 0,
    "n_cells_imputed": 0,
    "imputed_cols": []
  },
  "conf_level": 0.94999999999999996,
  "auc": 0.77028135509802309,
  "auc_ci": [0.70599784925176245, 0.83456486094428373],
  "youden_cutoff": 11.75,
  "sensitivity": 0.64383561643835618,
  "specificity": 0.77844311377245512,
  "roc_cases": "case",
  "roc_controls": "control",
  "roc_direction": "<",
  "roc_case_rule": "chosen",
  "positive_levels": [
    {
      "role": "truth",
      "column": "status",
      "positive": "case",
      "negative": "control",
      "rule": "chosen",
      "caution": false
    }
  ],
  "roc_direction_setting": "higher",
  "roc_direction_used": "higher",
  "roc_ci_notes": [],
  "power": {
    "method": null,
    "n": "NA",
    "mdes": "NA",
    "mdes_metric": null,
    "mdes_metric_i18n": null,
    "required_n": "NA",
    "required_n_label": null,
    "required_n_label_i18n": null,
    "severely_underpowered": null,
    "note": "Power is not calculated for this test.",
    "call_code": null
  },
  "explanations": ["marker discriminates status with an area under the ROC curve (AUC) of 0.7703 (95% CI 0.706 to 0.8346) - an AUC of 0.5 is no better than chance and 1.0 is perfect discrimination.", "status = 'case' is taken as the condition being present, and higher values of marker point to it.", "At the Youden-optimal cutoff of 11.75, the score reaches 0.6438 sensitivity and 0.7784 specificity.", "That cutoff was chosen on this same sample, so its sensitivity and specificity are optimistic; confirm them in an independent sample before relying on the cutoff."],
  "explanations_i18n": [
    {
      "key": "exp.roc.auc",
      "args": {
        "score": "marker",
        "outcome": "status",
        "auc": "0.7703",
        "ci": {
          "key": "exp.ci_paren",
          "args": {
            "ci": {
              "key": "exp.ci",
              "args": {
                "level": "95",
                "lower": "0.706",
                "upper": "0.8346"
              }
            }
          }
        }
      }
    },
    {
      "key": "exp.roc.positive_higher",
      "args": {
        "outcome": "status",
        "positive": "case",
        "score": "marker"
      }
    },
    {
      "key": "exp.roc.youden",
      "args": {
        "cutoff": "11.75",
        "sensitivity": "0.6438",
        "specificity": "0.7784"
      }
    },
    {
      "key": "exp.roc.youden_optimism"
    }
  ]
}
