Clinical Decisions at the Threshold
Step 6Live-room allocation: 3:00
Open in Colab — 06_Clinical_Decisions.ipynb, opens in a new tab
The difference between receiving a medication or not.
A different question needs a different measurement
Step 5 asked how well a mortality model ranks patients by risk, so it was graded with a ranking metric, AUROC. That was the right metric for that job. Every model should be evaluated with metrics matched to how it will be used.
This step asks a different question: does a changed eGFR push a patient across a treatment line? No ranking metric can answer that. The answer is a count of patients.
For metformin, the lines are explicit:
| Tier | eGFR |
|---|---|
| Standard | 45 and above |
| Caution | 30 to 44 |
| Contraindicated | below 30 |
A patient whose tier differs between the two equations could receive a different prescribing decision.
Who moved to a stricter tier?
Section titled “Who moved to a stricter tier?”Start with one direction. We call a patient masked when the race-based 2009 equation placed them in a more permissive tier than the race-free 2021 equation.
Among the 306 Black diabetic adults in this cohort, 13 patients (4.25%) were masked. Under the race-free equation:
- 11 fall below 45, from standard to caution.
- 2 fall below 30, from caution to contraindicated.
For Non-Black adults, the masked share is 0.00%.
Count both directions
Section titled “Count both directions”That Non-Black share is correct, but it only counts one direction. A tier can also change the other way:
- Masked: the race-based 2009 equation gives a more permissive tier.
- Reverse: the race-free 2021 equation gives a more permissive tier.
Across all 1,301 diabetic adults in this cohort, here is the full count:
| Direction | n | Black | Non-Black |
|---|---|---|---|
| Masked: race-based equation more permissive | 13 | 13 | 0 |
| Reverse: race-free equation more permissive | 16 | 0 | 16 |
Every masked patient is Black. Every reverse-direction patient is Non-Black. No patient falls on the other side of either count.
Did the change help?
Section titled “Did the change help?”Not in a way these counts alone can tell us.
The two directions should not be netted against each other. 13 Black patients move to a less permissive metformin tier under the race-free equation, while 16 Non-Black patients move to a more permissive tier. Those are different patients facing different clinical consequences. One change does not cancel the other.
And moving to a more permissive tier is not automatically a benefit. 6 patients move from contraindicated to caution under the race-free equation, making metformin available where it was previously restricted.
Whether that is the more appropriate decision depends on each patient’s true kidney function. This cohort does not contain measured GFR, so we cannot tell which equation placed each patient in the clinically correct tier.
What we can say is narrower, and more important for the audit:
Changing the upstream equation changed who crossed the treatment line, and it changed them in different directions.
The goal is not to make those counts cancel. It is to identify each consequence and evaluate it separately.
Where we are in the data supply chain
Section titled “Where we are in the data supply chain”Shared path
- Blood draw
- Serum creatinine
- eGFR equation
From eGFR, the path splits into separate branches. Neither branch feeds the other. (Act I followed a third branch, from eGFR to CKD stage.)
Branch 1: the model (what step 5 measured)
- eGFR
- Mortality model
- AUROC
Branch 2: the decision (what this step measures)
- eGFR
- Metformin tier
- Prescribing decision
- The number changes at the eGFR equation.
- Step 5’s metric was looking at the mortality model, on branch 1.
- The decision changes at the metformin tier, on branch 2.
A different question needs a different gate
Section titled “A different question needs a different gate”In step 5, the gate asked whether the mortality model still performed well. Here we are auditing something different:
Did changing the upstream equation change anyone’s prescribing tier?
For this workshop, we pre-commit to a simple review rule for the masked direction:
If the race-based equation placed even one Black diabetic patient in a more permissive tier, stop and investigate.
The review threshold is therefore zero affected patients.
Result: REVIEW (Black diabetic masking 4.25% > 0.0%).
Zero is not a clinical standard or a statistical cutoff. It is an audit choice. We are saying that a treatment-tier change is consequential enough that we do not want it silently absorbed into an aggregate metric.
This gate checks only the masked direction. The 16 reverse-direction patients would trip a zero threshold too, so a complete audit gates both directions.
Crossing the threshold does not prove harm. It tells us where review is required.