Applied Health Economics, RWE & HTA
Overview / Module 2 / Day 17
Module 2 · Biostatistics & econometrics · Day 17 of 100

Utilities: EQ-5D-5L and Mapping

A QALY weights each year of life by a utility between 0 (dead) and 1 (full health). Canadian HTA submissions usually take utilities from the EQ-5D-5L, scored with the Canadian value set. Today you read the EQ-5D-5L answers collected in the Renavex trial and score them. You map a disease-specific symptom score onto utilities, as sponsors do when a trial did not collect the EQ-5D. Then you estimate the utility of each health state in the Renavex model. A truth check shows those utilities are too high, which sets up Day 18.

▶
Video for Day 17 coming soon

By the end of today you can

  • describe the EQ-5D-5L's five dimensions and five levels, and read a profile such as 21131
  • score each patient with the Canadian value set (11111 = 0.949, 55555 = −0.148) before averaging
  • fit and validate direct and response mappings, and explain why mapped utilities vary too little
  • report state utilities with patient-level bootstrap CIs or SEs clustered by patient
  • check who answered the questionnaire before trusting the means

Today's 5.5-hour plan

LessonProjectBreakCommitFrançais
0:00–0:30
17.1 The EQ-5D-5L descriptive system
0:30–1:10
17.2 The Canadian value set
1:10–1:25
Break
1:25–1:45
17.3 The utility of the average profile
1:45–2:40
17.4 Mapping a symptom score to utility
2:40–2:55
Break
2:55–3:25
17.5 Check it in R
3:25–4:50
17.6 Mini-project: health-state utilities for the Renavex model
4:50–5:00
17.7 Save your work
5:00–5:30
Bloc français

In this lesson

17.1 The EQ-5D-5L descriptive system (30 min)

The EQ-5D-5L asks about five dimensions: mobility (MO), self-care (SC), usual activities (UA), pain/discomfort (PD) and anxiety/depression (AD). Each has five levels, from 1 (no problems) to 5 (extreme problems or unable). An answer is a five-digit profile such as 21131, one of 3,125 possible states.

The trial collected it at randomization and at months 12 and 24, along with a course instrument, the kidney symptom score (KSS, 0–100, higher is better), and the public payer costs of the previous 12 months.

VISITS = os.path.join(DATA, "renavex_trial_visits.csv").replace("\\", "/")

def visits(con=None):
    """Trial visits (months 0, 12, 24) with EQ-5D-5L levels, kidney symptom score (kss, 0-100, higher is
    better), the 12 months' costs (cost_12m, missing at month 0), and whether kidney failure had
    happened by the visit. Adds the Canadian utility (NaN when the questionnaire is missing)."""
    from corridor.eq5d import utility

    con = con or duckdb.connect()
    v = con.sql(f"""
        SELECT v.*, t.arm, (t.arm = 'renavex')::INT AS renavex, t.age, t.sex, t.egfr,
               (t.kidney_failure_date IS NOT NULL AND t.kidney_failure_date <= v.visit_date)::INT AS kf_now
        FROM read_csv('{VISITS}') v
        JOIN read_csv('{TRIAL}', types = {{'kidney_failure_date': 'DATE'}}) t USING (patient_id)
        ORDER BY patient_id, visit_month""").df()
    v["utility"] = utility(v)
    return v
"""Day 17.1: the EQ-5D-5L descriptive system in the Renavex trial."""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import pandas as pd  # noqa: E402

from corridor.eq5d import DIMS, profile  # noqa: E402
from corridor.trial import visits  # noqa: E402

v = visits()
base = v[v.visit_month == 0]
print(f"{len(v):,} visits; questionnaire completed at {v.mo.notna().sum():,}")
print("\nBaseline: % of patients at each level")
t = pd.DataFrame({d: base[d].value_counts(normalize=True).reindex(range(1, 6), fill_value=0) for d in DIMS}).T
t.columns = ["1 none", "2 slight", "3 moderate", "4 severe", "5 extreme"]
print((100 * t).round(1).to_string())
states = pd.Series(profile(base))
print(f"\n{states.nunique()} different health states among {len(base):,} patients; "
      f"{(states == '11111').mean():.1%} report no problems at all (11111)")
print("most common states:", ", ".join(f"{s} ({n})" for s, n in states.value_counts().head(6).items()))
7,555 visits; questionnaire completed at 6,680

Baseline: % of patients at each level
    1 none  2 slight  3 moderate  4 severe  5 extreme
mo    50.3      32.5        13.9       2.9        0.4
sc    77.8      18.1         3.8       0.4        0.0
ua    59.7      28.4         9.8       1.8        0.3
pd    34.9      35.5        21.8       6.5        1.3
ad    56.1      29.5        11.7       2.3        0.3

243 different health states among 3,000 patients; 26.1% report no problems at all (11111)
most common states: 11111 (782), 11121 (313), 21121 (141), 21111 (92), 21222 (84), 11122 (79)

Pain/discomfort is the dimension with the most problems; self-care the least. A quarter of patients report no problems at all (11111). Levels 4 and 5 are rare. That shape (a big ceiling, a long tail) is typical of the EQ-5D in a chronic disease population.


17.2 The Canadian value set (40 min)

A value set turns each profile into a utility, using preferences elicited from the general population (here, by time trade-off). The Canadian EQ-5D-5L value set (Xie et al., Medical Care 2016) is

U=1.1351−0.0389 MO−0.0458 SC−0.0195 UA−0.0444 PD−0.0376 AD−0.0510 MO45−0.0584 SC45−0.1103 UA45−0.1409 PD45−0.1277 AD45+0.0085 N452U = 1.1351 - 0.0389\,MO - 0.0458\,SC - 0.0195\,UA - 0.0444\,PD - 0.0376\,AD - 0.0510\,MO_{45} - 0.0584\,SC_{45} - 0.1103\,UA_{45} - 0.1409\,PD_{45} - 0.1277\,AD_{45} + 0.0085\,N_{45}^2

The dimensions enter as their level (1–5). $XX_{45}$ is 1 if that dimension is at level 4 or 5. $N_{45}^2$ is the squared number of dimensions at level 4 or 5 beyond the first.

DIMS = ["mo", "sc", "ua", "pd", "ad"]
CONSTANT = 1.1351
LINEAR = {"mo": 0.0389, "sc": 0.0458, "ua": 0.0195, "pd": 0.0444, "ad": 0.0376}
LEVEL45 = {"mo": 0.0510, "sc": 0.0584, "ua": 0.1103, "pd": 0.1409, "ad": 0.1277}
NUM45SQ = 0.0085

def utility(levels):
    """Canadian EQ-5D-5L utility. `levels` is an (n, 5) array (or a DataFrame with columns mo..ad)
    of integers 1-5; rows with any missing level give NaN."""
    if hasattr(levels, "columns"):
        lv = levels[DIMS].to_numpy(dtype=float, na_value=np.nan)
    else:
        lv = np.atleast_2d(np.asarray(levels, dtype=float))
    severe = lv >= 4
    n45 = severe.sum(axis=1)
    u = (CONSTANT - lv @ np.array([LINEAR[d] for d in DIMS])
         - severe @ np.array([LEVEL45[d] for d in DIMS])
         + NUM45SQ * np.maximum(n45 - 1, 0) ** 2)
    u[np.isnan(lv).any(axis=1)] = np.nan
    return u
"""Day 17.2: score EQ-5D-5L with the Canadian value set."""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import numpy as np  # noqa: E402

from corridor.eq5d import utility  # noqa: E402
from corridor.trial import visits  # noqa: E402

for state in ("11111", "21111", "11112", "22222", "33333", "11151", "55555"):
    print(f"{state}: {utility(np.array([[int(c) for c in state]]))[0]:.4f}")

v = visits()
print("\nMean utility (questionnaires completed), by arm and visit")
print(v.pivot_table(index="visit_month", columns="arm", values="utility", aggfunc=["mean", "count"]).round(3).to_string())
print("\nBy kidney failure status at the visit")
print(v.groupby("kf_now").utility.agg(["mean", "std", "count"]).round(3).to_string())
11111: 0.9489
21111: 0.9100
11112: 0.9113
22222: 0.7627
33333: 0.5765
11151: 0.6304
55555: -0.1482

Mean utility (questionnaires completed), by arm and visit
               mean           count        
arm         placebo renavex placebo renavex
visit_month                                
0             0.807   0.817    1485    1515
12            0.797   0.820    1120    1183
24            0.779   0.818     644     733

By kidney failure status at the visit
         mean    std  count
kf_now                     
0       0.813  0.169   6535
1       0.594  0.275    145

Two facts to remember:

  • Full health scores 0.949, not 1. Every dimension enters at its level, including level 1. The worst state (55555) scores −0.148, worse than dead.
  • Severe problems cost far more than their level suggests. 11151 (extreme pain, nothing else) scores 0.630, barely above 33333 (moderate problems on every dimension, 0.577). The level-4/5 terms make extreme pain and anxiety the most costly answers.

Patients on Renavex keep their utility (0.817 → 0.818). Placebo patients decline (0.807 → 0.779). Kidney failure goes with a much lower utility (0.594 against 0.813), but only 145 questionnaires come from patients with kidney failure.


17.3 The utility of the average profile (20 min)

Bug of the day. An analyst averages each dimension's level, then scores the average profile:

"""Day 17 bug of the day: the utility of the average profile."""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import numpy as np  # noqa: E402

from corridor.eq5d import DIMS, utility  # noqa: E402
from corridor.trial import visits  # noqa: E402

v = visits().dropna(subset=["mo"])
for kf, g in v.groupby("kf_now"):
    mean_levels = g[DIMS].mean().to_numpy()
    print(f"kidney failure = {kf}: mean levels {np.round(mean_levels, 2)}  ->  utility of the mean profile "
          f"{utility(mean_levels[None, :])[0]:.3f};  mean of the utilities {g.utility.mean():.3f}")
kidney failure = 0: mean levels [1.71 1.26 1.53 2.04 1.61]  ->  utility of the mean profile 0.830;  mean of the utilities 0.813
kidney failure = 1: mean levels [2.57 1.86 2.3  3.02 2.48]  ->  utility of the mean profile 0.678;  mean of the utilities 0.594

The average profile overstates utility: by 0.017 without kidney failure and by 0.084 with it. The value set is not linear: the level-4/5 terms only switch on for the few patients with severe problems, and averaging the levels hides them. Score each person, then average the utilities.


17.4 Mapping a symptom score to utility (55 min)

When a trial collected a disease-specific instrument but no EQ-5D, the sponsor maps: estimates the relationship in a dataset that has both, then predicts utilities. Two approaches:

  • Direct mapping: regress the utility on the symptom score (and age, sex).
  • Response mapping: model each EQ-5D dimension's level (an ordered logit per dimension), predict the probabilities of each level, then score the predicted profiles. Its advantage: once fitted, any value set can be applied.
def expected_utility(probs, draws=200, seed=2026):
    """Response mapping: expected utility from per-dimension level probabilities.

    probs: dict dim -> (n, 5) array of predicted probabilities for levels 1-5. Dimensions are drawn
    independently given the predictors (a simplification: real answers are correlated), and the
    utility is averaged over `draws` simulated profiles per person.
    """
    rng = np.random.default_rng(seed)
    n = next(iter(probs.values())).shape[0]
    total = np.zeros(n)
    cum = {d: np.cumsum(probs[d], axis=1) for d in DIMS}
    for _ in range(draws):
        u = rng.random((n, len(DIMS)))
        lv = np.column_stack([1 + (u[:, j, None] > cum[d][:, :4]).sum(axis=1) for j, d in enumerate(DIMS)])
        total += utility(lv)
    return total / draws

Estimate on half the patients and validate on the other half, so no patient is in both:

"""Day 17.4-17.5: map a kidney symptom score to EQ-5D-5L utility - direct and response mapping."""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import matplotlib  # noqa: E402

matplotlib.use("Agg")
import matplotlib.pyplot as plt  # noqa: E402
import numpy as np  # noqa: E402
import pandas as pd  # noqa: E402
import statsmodels.formula.api as smf  # noqa: E402
from statsmodels.miscmodels.ordinal_model import OrderedModel  # noqa: E402

from corridor.db import ROOT  # noqa: E402
from corridor.eq5d import DIMS, expected_utility  # noqa: E402
from corridor.trial import visits  # noqa: E402

v = visits().dropna(subset=["mo"]).reset_index(drop=True)
v["kss10"] = (v.kss - 70) / 10
v["age10"] = (v.age - 66) / 10
v["male"] = (v.sex == "M").astype(int)
for d in DIMS:
    v[d] = v[d].astype(int)
# estimation and validation samples: split by PATIENT, so no one is in both
ids = v.patient_id.unique()
test_ids = set(np.random.default_rng(2026).choice(ids, len(ids) // 2, replace=False))
test = v.patient_id.isin(test_ids)
train, val = v[~test], v[test].copy()
X = "kss10 + I(kss10**2) + age10 + male"

ols = smf.ols(f"utility ~ {X}", train).fit()
val["direct"] = ols.predict(val)
probs = {}
for d in DIMS:
    m = OrderedModel.from_formula(f"{d} ~ kss10 + I(kss10**2) + age10 + male", train, distr="logit").fit(
        method="bfgs", disp=False, maxiter=500)
    p = np.asarray(m.predict(val))
    probs[d] = np.pad(p, ((0, 0), (0, 5 - p.shape[1])))      # levels never seen in training get probability 0
val["response"] = expected_utility(probs)

print(f"estimation sample {len(train):,} visits, validation sample {len(val):,} visits (different patients)")
print(f"direct OLS: R2 {ols.rsquared:.3f};  utility = {ols.params['Intercept']:.3f} + {ols.params['kss10']:.3f} x (KSS-70)/10 + ...")
rows = []
for name in ("direct", "response"):
    e = val.utility - val[name]
    rows.append({"mapping": name, "MAE": e.abs().mean(), "RMSE": np.sqrt((e**2).mean()), "mean": val[name].mean(),
                 "SD": val[name].std(), "min": val[name].min()})
rows.append({"mapping": "observed", "mean": val.utility.mean(), "SD": val.utility.std(), "min": val.utility.min()})
print(pd.DataFrame(rows).round(3).to_string(index=False))
val["band"] = pd.cut(val.utility, [-1, 0.5, 0.7, 0.85, 1.0], labels=["< 0.5", "0.5-0.7", "0.7-0.85", "0.85+"])
print("\nMean prediction by band of OBSERVED utility")
print(val.groupby("band", observed=True)[["utility", "direct", "response"]].agg(["mean"]).round(3)
      .droplevel(1, axis=1).assign(n=val.groupby("band", observed=True).size()).to_string())

fig, ax = plt.subplots(figsize=(5.4, 4))
for name, colour in (("direct", "#e5484d"), ("response", "#4f9cf9")):
    q = pd.qcut(val[name].rank(method="first"), 10, labels=False)
    ax.plot(val.groupby(q)[name].mean(), val.groupby(q).utility.mean(), "o-", color=colour, label=f"{name} mapping")
ax.plot([0.3, 1], [0.3, 1], ls="--", color="#888", lw=1)
ax.set(xlabel="mean predicted utility (decile)", ylabel="mean observed utility", title="Mapping calibration")
ax.legend()
fig.tight_layout()
fig.savefig(os.path.join(ROOT, "figures", "day17_mapping.png"), dpi=130)

pd_all = OrderedModel.from_formula("pd ~ kss10", v, distr="logit").fit(method="bfgs", disp=False)
print(f"\nfor the R check: pain/discomfort ordered logit on all visits, slope for (KSS-70)/10 = {pd_all.params['kss10']:.3f}")
estimation sample 3,358 visits, validation sample 3,322 visits (different patients)
direct OLS: R2 0.527;  utility = 0.837 + 0.094 x (KSS-70)/10 + ...
 mapping   MAE  RMSE  mean    SD    min
  direct 0.078 0.117 0.811 0.128 -0.070
response 0.077 0.117 0.810 0.126  0.071
observed   NaN   NaN 0.806 0.179 -0.102

Mean prediction by band of OBSERVED utility
          utility  direct  response     n
band                                     
< 0.5       0.304   0.569     0.568   254
0.5-0.7     0.635   0.689     0.689   309
0.7-0.85    0.787   0.785     0.785   981
0.85+       0.918   0.882     0.878  1778

for the R check: pain/discomfort ordered logit on all visits, slope for (KSS-70)/10 = -1.476

Mapping calibration by decile

Both mappings predict the mean utility within 0.005 and have the same error (MAE 0.077–0.078). Both also share mapping's main weakness: the predictions are compressed toward the mean. The predicted SD is 0.13 against 0.18 observed. Patients with observed utility below 0.5 are predicted at 0.57; the healthiest are predicted too low. Mapped utilities are fine for mean utilities by group. They understate how much utilities vary between patients, which matters for patient-level analyses and probabilistic models. CDA-AMC and NICE both prefer EQ-5D collected directly; mapping is a fallback, and the mapping study should be reported (MAPS checklist).

Try it (10 min). What share of completed questionnaires is at the ceiling (11111), by visit and kidney failure status? What does the ceiling mean for detecting a treatment benefit?

Solution
"""Day 17 try it: how many patients are at the ceiling (11111), by visit and kidney failure status?"""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.eq5d import profile  # noqa: E402
from corridor.trial import visits  # noqa: E402

v = visits().dropna(subset=["utility"])
v["ceiling"] = [s == "11111" for s in profile(v)]
print(v.pivot_table(index="visit_month", columns="kf_now", values="ceiling", aggfunc="mean").round(3).to_string())
print(f"\nhighest possible utility: {v.utility.max():.4f}; share of all completed questionnaires at it: {v.ceiling.mean():.3f}")
kf_now           0      1
visit_month              
0            0.261    NaN
12           0.264  0.062
24           0.236  0.031

highest possible utility: 0.9489; share of all completed questionnaires at it: 0.252

A quarter of patients without kidney failure are at the ceiling at every visit. Their utility cannot improve, so a treatment that makes healthy patients feel better shows no utility gain. Renavex's utility benefit comes from preventing decline, not from improvement. After kidney failure, almost nobody is at the ceiling (3–6%).

Why it matters at work: Utilities drive the QALY side of every cost-utility analysis. Reviewers check the instrument, the value set (Canadian, for CDA-AMC and INESSS), whether utilities were scored per patient, and whether mapped utilities were validated.

Where you'll meet this: health-state utilities in Module 5–6 models · trial-based CUAs (Days 53–55) · CDA-AMC reviews that replace a sponsor's mapped utilities with published EQ-5D values


17.5 Check it in R (30 min)

Score the Canadian value set with a hand-written R function (an R package such as eq5d does the same), and fit one ordered logit with MASS::polr:

# Day 17: the Canadian EQ-5D-5L value set in R, and an ordered logit for one dimension (MASS::polr).
suppressPackageStartupMessages(library(MASS))
eq5d_ca <- function(mo, sc, ua, pd, ad) {
  lv <- cbind(mo, sc, ua, pd, ad)
  s45 <- lv >= 4
  n45 <- rowSums(s45)
  1.1351 - drop(lv %*% c(0.0389, 0.0458, 0.0195, 0.0444, 0.0376)) -
    drop(s45 %*% c(0.0510, 0.0584, 0.1103, 0.1409, 0.1277)) + 0.0085 * pmax(n45 - 1, 0)^2
}
cat(sprintf("11111 %.4f   55555 %.4f\n", eq5d_ca(1, 1, 1, 1, 1), eq5d_ca(5, 5, 5, 5, 5)))
v <- read.csv("data/renavex_trial_visits.csv")
tr <- read.csv("data/renavex_trial.csv")
v <- merge(v, tr[, c("patient_id", "arm")], by = "patient_id")
v <- v[!is.na(v$mo), ]
v$utility <- with(v, eq5d_ca(mo, sc, ua, pd, ad))
print(round(tapply(v$utility, list(v$visit_month, v$arm), mean), 3))
v$kss10 <- (v$kss - 70) / 10
fit <- polr(factor(pd, levels = 1:5) ~ kss10, data = v, method = "logistic")
cat(sprintf("\npain/discomfort ordered logit, all visits: slope for (KSS-70)/10 = %.3f\n", coef(fit)[["kss10"]]))
11111 0.9489   55555 -0.1482
   placebo renavex
0    0.807   0.817
12   0.797   0.820
24   0.779   0.818

pain/discomfort ordered logit, all visits: slope for (KSS-70)/10 = -1.476

The anchor states, the mean utilities and the ordered-logit slope (−1.476) match Python.


17.6 Mini-project: health-state utilities for the Renavex model (85 min)

The Module 6 model needs a utility for each state: alive without kidney failure, alive with kidney failure. Estimate both with 95% CIs from a bootstrap that resamples patients (each has up to three visits), and the adjusted decrement for kidney failure with SEs clustered by patient.

"""Day 17 mini-project: health-state utilities for the Renavex model, and a truth check.

States: alive without kidney failure, alive with kidney failure. Report the mean utility in each state
with a patient-level bootstrap CI, and the adjusted decrement for kidney failure with SEs clustered by
patient (each patient contributes up to three visits).
"""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import duckdb  # noqa: E402
import numpy as np  # noqa: E402
import statsmodels.formula.api as smf  # noqa: E402

from corridor.eq5d import utility  # noqa: E402
from corridor.trial import visits  # noqa: E402
from corridor.truth import TRUTH  # noqa: E402

v = visits()
obs = v.dropna(subset=["utility"]).copy()
obs["age10"] = (obs.age - 66) / 10

def state_means(d):
    return d.groupby("kf_now").utility.mean().reindex([0, 1]).to_numpy()

rng = np.random.default_rng(2026)
groups = {p: g for p, g in obs.groupby("patient_id")}
ids = np.array(list(groups))
boot = []
for _ in range(500):
    sample = obs.iloc[np.concatenate([groups[p].index.to_numpy() for p in rng.choice(ids, len(ids))]) - obs.index[0]]         if False else obs.loc[np.concatenate([groups[p].index.to_numpy() for p in rng.choice(ids, len(ids))])]
    boot.append(state_means(sample))
boot = np.array(boot)
m = state_means(obs)
for k, label in enumerate(("no kidney failure", "kidney failure")):
    lo, hi = np.nanquantile(boot[:, k], [0.025, 0.975])
    print(f"{label:<18} mean utility {m[k]:.3f} (95% CI {lo:.3f} to {hi:.3f}), {int((obs.kf_now == k).sum())} visits")

fit = smf.ols("utility ~ kf_now + age10 + egfr + C(visit_month) + renavex", obs).fit(
    cov_type="cluster", cov_kwds={"groups": obs.patient_id.astype("category").cat.codes})
naive = smf.ols("utility ~ kf_now + age10 + egfr + C(visit_month) + renavex", obs).fit()
b, se = fit.params["kf_now"], fit.bse["kf_now"]
print(f"\nadjusted decrement for kidney failure: {b:.3f} (SE clustered by patient {se:.3f}; naive SE {naive.bse['kf_now']:.3f})")

full = duckdb.sql(f"SELECT * FROM read_csv('{TRUTH}/trial_visits_complete.csv')").df()
full = full.merge(v[["patient_id", "visit_month", "kf_now", "arm"]], on=["patient_id", "visit_month"], how="left")
full["utility"] = utility(full)
seen = full.dropna(subset=["kf_now"])      # visits that happened before follow-up ended
print("\nTruth check: every questionnaire answered (from the generator)")
print(f"  no kidney failure {seen[seen.kf_now == 0].utility.mean():.3f}   kidney failure {seen[seen.kf_now == 1].utility.mean():.3f}")
no kidney failure  mean utility 0.813 (95% CI 0.808 to 0.818), 6535 visits
kidney failure     mean utility 0.594 (95% CI 0.545 to 0.645), 145 visits

adjusted decrement for kidney failure: -0.216 (SE clustered by patient 0.023; naive SE 0.014)

Truth check: every questionnaire answered (from the generator)
  no kidney failure 0.797   kidney failure 0.511

The kidney failure decrement is −0.216 after adjustment. Clustering by patient raises its SE from 0.014 to 0.023: repeated visits from one patient are not independent observations.

Then the truth check, using every questionnaire the generator knows, answered or not. The true state utilities are 0.797 and 0.511, not 0.813 and 0.594. Patients in worse health skipped more questionnaires, so the answered ones are too healthy, most of all after kidney failure. Day 18 deals with that.

17.7 Save your work

python -m pytest -q
git add .
git commit -m "Day 17: EQ-5D-5L Canadian value set, mapping, state utilities"

Day 17 checklist

  • I can describe the EQ-5D-5L's five dimensions and five levels, and read a profile such as 21131
  • I score each patient with the Canadian value set (11111 = 0.949, 55555 = −0.148) before averaging
  • I can fit and validate direct and response mappings, and explain why mapped utilities vary too little
  • I report state utilities with patient-level bootstrap CIs or SEs clustered by patient
  • I check who answered the questionnaire before trusting the means