8  Worked Personalized Decisions

The trial ends with a posterior for an average effect. The clinic begins with a patient. Between the two lies a calculation that is rarely written down: what the average effect implies for this patient’s risk, how uncertain that implication is, and whether the expected benefit exceeds the expected harm and cost. Chapter 6 developed the models for heterogeneous effects and Chapter 4 the theory of when to act. This chapter applies them to three stylized cases, chosen because each turns on a different part of the calculation. The parameter values are illustrative, not clinical recommendations.

8.1 Case one: absolute risk decides

A preventive drug reduces the relative risk of a cardiovascular event over ten years. The trials give a posterior for the log relative risk of \(N(\log 0.75, 0.05^2)\), so \(E[RR] = 0.751\), and the relative reduction is close to constant across baseline risk. The drug has a small harm and burden, which a patient judges equivalent to a ten year event risk of \(h\) (taking the drug is worth it only if it lowers the patient’s ten year risk by more than \(h\)): a daily pill, occasional side effects, and cost.

For a patient with baseline ten year risk \(r\), the expected absolute risk reduction is \(r(1 - E[RR])\) and the expected net benefit is

\[ \Delta(r) = r\,(1 - E[RR]) - h . \tag{8.1}\]

The patient should take the drug when \(\Delta(r) > 0\), that is when \(r > r^\ast = h/(1 - E[RR])\) (Table 8.1).

Show the R code
err <- exp(log(0.75) + 0.05^2 / 2)
r <- c(0.02, 0.05, 0.10, 0.20)
knitr::kable(data.frame(`Ten year risk` = r, `Absolute reduction` = r * (1 - err),
  `Number needed to treat` = round(1 / (r * (1 - err))),
  `Net benefit at h = 0.01` = round(r * (1 - err) - 0.01, 4), check.names = FALSE))
Table 8.1: Expected absolute benefit of a preventive drug with E[RR] = 0.751 (posterior mean of the relative risk).
Ten year risk Absolute reduction Number needed to treat Net benefit at h = 0.01
0.02 0.0049812 201 -0.0050
0.05 0.0124531 80 0.0025
0.10 0.0249062 40 0.0149
0.20 0.0498124 20 0.0398

With \(h = 0.01\) the threshold is \(r^\ast = 0.040\); with \(h = 0.005\) it is 0.020; with \(h = 0.02\) it is 0.080. Statin guidelines set such cut points on an estimated ten year risk. The 2013 ACC/AHA guideline recommends a statin for adults aged 40 to 75 without diabetes or clinical cardiovascular disease and with LDL cholesterol of 70 to 189 mg/dL at a ten year risk of atherosclerotic cardiovascular disease of 7.5 percent or more and finds one reasonable from 5 percent (Stone et al. 2014, 2901); the USPSTF recommends one for adults aged 40 to 75 with at least one risk factor at a ten year cardiovascular risk of 10 percent or more, and a selective offer from 7.5 percent (US Preventive Services Task Force et al. 2022, 746); NICE recommended one at a ten year risk of 10 percent or more (National Clinical Guideline Centre 2014, 45) and kept that cut point when NG238 replaced its guideline in 2023 (National Institute for Health and Care Excellence 2023, 23). The three bodies use different risk measures, and statins are not this case’s drug, so the conversion holds only under this case’s relative risk: there, cut points of five, seven and a half and ten percent correspond to \(h = 0.012\), \(0.019\) and \(0.025\) (the cut point times \(1 - E[RR]\)), and a debate about them is better conducted in those terms. A patient who dislikes taking pills has a higher \(h\) and a higher threshold. A shared decision is one in which \(h\) is the patient’s.

The role of uncertainty. The posterior standard deviation of the log relative risk, 0.05, barely affects this decision. The expected net benefit depends on \(E[RR]\), which the uncertainty moves by a tenth of a percent. Uncertainty about the patient’s baseline risk matters much more: a risk calculator with a calibration error of two percentage points at \(r = 0.05\) moves the expected benefit by half a percentage point, half the size of \(h\).

8.2 Case two: to test or to treat

A patient presents with symptoms that suggest a serious but treatable condition with probability \(p\). Treating a patient who has the condition yields benefit \(B = 0.30\) on a utility scale; treating a patient who does not yields harm \(H = 0.05\). A diagnostic test has sensitivity 0.90 and specificity 0.85 and no direct harm.

Without the test, treating has expected utility \(pB - (1-p)H\), and the treatment threshold of Pauker and Kassirer (1980) is

\[ p_T = \frac{H}{B + H} = \frac{0.05}{0.35} = 0.143 . \]

With the test, the clinician treats a positive result and withholds treatment after a negative one. The expected utility of testing is

\[ U_{\text{test}}(p) = p \cdot 0.90 \cdot B - (1 - p) \cdot 0.15 \cdot H . \]

Testing is better than withholding treatment when \(p\) exceeds the testing threshold, and better than treating empirically when \(p\) is below the test treatment threshold:

\[ p_{\text{test}} = \frac{(1 - \mathrm{sp})H}{\mathrm{se}\, B + (1 - \mathrm{sp})H} = 0.027, \qquad p_{\text{treat}} = \frac{\mathrm{sp}\, H}{(1 - \mathrm{se}) B + \mathrm{sp}\, H} = 0.586, \]

where se and sp denote sensitivity and specificity (written \(s\) and \(f\) in Chapter 4). Below a probability of 2.7 percent the clinician should do nothing; between 2.7 and 58.6 percent she should test; above 58.6 percent she should treat without testing, because a negative result would not be trusted enough to withhold treatment.

Where the Bayesian part enters. The probability \(p\) is a posterior, built from the prevalence in the clinic and the patient’s presentation, and the test result updates it by Bayes’ rule. The thresholds are the decision analysis; the posterior is the inference. Two patients with the same test result but different presentations can rightly receive different treatment. The timing framework of Parmigiani (1997) in Chapter 4 extends the decision analysis to the question of when to repeat an examination.

Sensitivity to \(B\) and \(H\). If the harm of treatment doubles to \(H = 0.1\), the treatment threshold rises to 0.25 and the testing range moves up and widens, from 0.027 to 0.586 to 0.053 to 0.739 (Table 8.2). The thresholds are only as good as the utilities, and the utilities are the patient’s. Displaying the three regions as a function of \(p\) for a range of \(H\) is a natural decision aid.

Show the R code
thr <- function(H, B = 0.30, se = 0.90, sp = 0.85)
  c(`Treatment threshold` = H / (B + H),
    `Testing threshold` = (1 - sp) * H / (se * B + (1 - sp) * H),
    `Test treatment threshold` = sp * H / ((1 - se) * B + sp * H))
knitr::kable(round(data.frame(`H = 0.05` = thr(0.05), `H = 0.10` = thr(0.10), check.names = FALSE), 3))
Table 8.2: Decision thresholds in case two for two values of the harm of treatment H (B = 0.30, sensitivity 0.90, specificity 0.85).
H = 0.05 H = 0.10
Treatment threshold 0.143 0.250
Testing threshold 0.027 0.053
Test treatment threshold 0.586 0.739

8.3 Case three: a biomarker that modifies the effect

A targeted agent was tested in a trial that measured a continuous biomarker \(x\), standardized to mean zero and unit variance and approximately normal in the patient population. The treatment effect on a log odds scale is modeled as \(\theta(x) = \beta_0 + \beta_1 x\), with posterior \(\beta_0 \sim N(-0.20, 0.08^2)\) and \(\beta_1 \sim N(-0.15, 0.07^2)\), independent. Negative values are beneficial. A clinically meaningful benefit is \(\theta(x) < -0.1\).

Show the R code
x <- -2:2
m <- -0.20 - 0.15 * x
s <- sqrt(0.08^2 + 0.07^2 * x^2)
knitr::kable(data.frame(`Biomarker x` = x, `Posterior mean of theta(x)` = m, `Posterior SD` = round(s, 3),
  `Pr(theta(x) < 0)` = round(pnorm(0, m, s), 3), `Pr(theta(x) < -0.1)` = round(pnorm(-0.1, m, s), 3),
  check.names = FALSE))
Table 8.3: Posterior treatment effect as a function of the biomarker.
Biomarker x Posterior mean of theta(x) Posterior SD Pr(theta(x) < 0) Pr(theta(x) < -0.1)
-2 0.10 0.161 0.268 0.107
-1 -0.05 0.106 0.681 0.319
0 -0.20 0.080 0.994 0.894
1 -0.35 0.106 1.000 0.991
2 -0.50 0.161 0.999 0.993

The average patient benefits with high probability (Table 8.3). A patient two standard deviations below the mean probably does not, and is more likely harmed than helped (posterior probability 0.73). A patient at \(x = -1\) is in a zone of genuine uncertainty: a two in three chance of some benefit and a one in three chance of a meaningful one.

The posterior variance of \(\theta(x)\) is \(0.08^2 + 0.07^2 x^2\), so uncertainty grows with distance from the center of the trial population. This is the formal version of the clinical caution about extrapolating to patients unlike those enrolled. A patient at \(x = -2\) has a posterior standard deviation of 0.16, twice that at the center.

Decision. If the treatment has toxicity worth \(0.05\) on the log odds scale, the patient should be treated when \(E[\theta(x)] < -0.05\), that is when \(x > -1\). A rule that treats everyone because the trial was positive overall treats about sixteen percent of patients, those with \(x < -1\), for whom the expected net benefit is negative. A rule that treats no one in a subgroup unless an interaction test is significant discards the information in \(\beta_1\). The posterior rule uses both coefficients.

The value of a better biomarker trial. The patients near \(x = -1\) are where more information is worth most, because the decision is closest to its boundary there. An enrichment trial that oversamples patients with low biomarker values would sharpen \(\beta_1\) where it matters. This is the logic of the adaptive enrichment designs treated in the companion volume, Bayesian Clinical Trials, and of the targeting rules in Chapter 7.

8.4 Lessons

Translate relative effects into absolute ones. Most treatment decisions turn on absolute benefit, which depends on baseline risk. A constant relative effect implies different decisions for patients at different risk.

Write the thresholds down. Treatment and testing thresholds follow from benefits and harms. Writing them down makes the patient’s values part of the decision instead of an afterthought.

Respect the uncertainty at the edges. Posterior uncertainty about individual effects grows away from the center of the trial population. Decisions for unusual patients should reflect it.

NoteKey points
  • A constant relative effect gives different decisions at different baseline risks; the treatment threshold is \(r^\ast = h/(1 - E[RR])\), where \(h\) is the patient’s valuation of the harm and burden.
  • Uncertainty in the baseline risk matters more than uncertainty in the relative effect for preventive decisions.
  • The testing and test treatment thresholds follow from the benefit, the harm and the test’s sensitivity and specificity; the posterior probability of disease is the inference and the thresholds are the decision.
  • With a biomarker that modifies the effect, posterior uncertainty about an individual’s effect grows with distance from the center of the trial population.
TipDiscussion questions
  1. In case one, suppose the relative effect is not constant: \(\log RR(r) = \log 0.75 + 0.1 \log(r/0.1)\). Recompute the threshold \(r^\ast\) for \(h = 0.01\).
  2. Derive the testing and test treatment thresholds in case two from the expected utilities of the three strategies.
  3. In case two, add a test harm of \(0.005\). How do the thresholds change?
  4. In case three, suppose \(\beta_0\) and \(\beta_1\) have posterior correlation \(-0.5\). Recompute the probability column for \(\theta(x) < -0.1\) in the biomarker table.
  5. In case three, find the biomarker value at which the posterior probability of meaningful benefit is exactly one half, and the fraction of a standard normal population below it.
  6. Design an enrichment trial for case three. Use the posterior in case three as the prior. Assume a binary outcome with log odds \(\mathrm{logit}(0.3) + t\,\theta(x)\), where \(t\) is the treatment indicator, the control log odds are known, allocation is 1:1, \(x\) follows a standard normal truncated to \(x < 0\), and the logistic likelihood is replaced by its normal approximation. If 400 new patients are drawn from the population with \(x < 0\), by how much is the posterior standard deviation of \(\beta_1\) expected to fall?