← All documentation

ROC analysis

Evaluate binary diagnostic or predictive discrimination using ROC curves and area under the curve.

Data requirements

Use a binary outcome and up to ten numeric scores. Supply 6–5,000 complete observations, with at least two in each class.

Upload UTF-8 CSV or TSV with unique column names in the first row. Blank, NA, N/A, NaN and NULL entries are treated as missing. Files support up to 2 MiB, 10,000 rows, 60 columns and 200,000 cells; module-specific limits also apply.

Parameters

Names match the analysis form. Starting values describe a newly loaded form; column selections depend on your uploaded data. Matching example column names may be preselected. Review every selection before running.

“Optional / conditional” fields may be required by a particular mode or method. The explanation states when each field takes effect. Hold Ctrl / Command to select multiple columns.

Confidence level

Number

Enter a proportion strictly between 0 and 1, such as 0.95 for a 95% confidence interval. Sets the percentile bounds of the stratified bootstrap AUC interval.

Input
Required
Starting value
0.95

Binary outcome

Column

Binary class label, excluded from the score selection.

Input
Required
Starting value
Depends on the uploaded columns; review the selection.

Event value

Text

Exact observed value identifying the positive class; the other class is negative.

Input
Required
Starting value
1

Scores

Multiple columns

One to ten numeric score columns. All scores use the same rows complete across the outcome and every selected score.

Input
Required
Starting value
Depends on the uploaded columns; review the selection.

Direction

Choice

higher means larger scores predict the event; lower reverses the direction for all scores. Choose scores with a common direction or analyze them separately.

higher
higher
lower
lower
Input
Required
Starting value
higher

Example settings

Load the bundled example in the analysis workspace, or upload the example CSV linked above, then use these settings. These are illustrative choices for the synthetic data.

ROC analysis — bundled example settings
Parameter Setting
Confidence level 0.95
Binary outcome binary
Event value 1
Scores score
Direction higher

Results

The AUC table includes intervals, a Youden cutoff, sensitivity and specificity. Separate ROC-coordinate tables and combined curves are available. Additional downloadable analysis-summary and diagnostics tables describe the analysis scope and method checks. Selected-variable missingness is reported where applicable. Diagnostics do not establish external validity or verify untested assumptions.

Review the reported method, observation count and notes alongside the estimates. Result tables can be downloaded as CSV and the figure as PNG.

Notes & limitations

  • Intervals use 300 stratified percentile bootstrap resamples with seed 42, rather than DeLong intervals.
  • Youden cutoffs use the same data and are exploratory. The AUC table reports original-scale cutoffs; coordinate tables use oriented scores (negated for lower).