Target Trial Emulation
The most useful idea in observational research of the last decade: describe the randomized trial you would run, then emulate it with the data you have. Eligibility, time zero and the start of treatment are aligned, as they are in a trial; only randomization is replaced by adjustment. Today you write the Renavex target trial protocol, emulate it with twelve monthly "sequential" trials, estimate risks with the g-formula and a person-level bootstrap, and check the result against the generator, which ran every eligible person-trial both ways.
By the end of today you can
- write a target trial protocol and its emulation, component by component
- My eligibility, treatment assignment and start of follow-up all happen at the same time zero
- compare new users, never prevalent users
- estimate standardized risks with the g-formula and bootstrap people, not rows
- check how many rows my model actually used
Today's 5.5-hour plan
In this lesson
22.1 The target trial protocol (40 min)
| Component | Target trial (what you would do) | Why it matters in the emulation |
|---|---|---|
| Eligibility | T2D and CKD, eGFR 20–60 measured in the last year, never treated with Renavex | uses only information available at time zero |
| Strategies | start Renavex now vs do not start now | new users: prevalent users have already survived the early months on treatment |
| Assignment | random | replaced by adjustment for the confounders at time zero |
| Time zero | randomization | eligibility met, treatment assigned and follow-up starting at the same moment |
| Outcome | kidney failure within 24 months | death first counts as no kidney failure (a competing event) |
| Causal contrast | intention to treat | what happens after the start decision is part of the strategy |
| Analysis | compare risks | g-formula; standard errors that know people repeat |
The three time-related rows (eligibility, assignment, follow-up all starting together) are what most flawed observational studies get wrong, and Day 23 shows the damage.
22.2 Sequential trials: eligibility and time zero every month (40 min)
Anyone eligible could start Renavex in any month, so emulate one trial per month of 2026. In trial k, everyone eligible on the first day of month k enters; those with a first dispensing that month are "start", everyone else "do not start". A person can enter several trials as a non-starter and, at most once, as a starter, after which they are no longer eligible.
"""Day 22: target trial emulation with sequential (nested) monthly trials.
Trial k starts on the first day of month k of 2026 (k = 0..11). Eligible: in the extract, alive and free
of kidney failure at the start, never dispensed Renavex before (2025 users are prevalent users and never
eligible), and an eGFR of 20-60 measured in the previous 12 months. Treatment strategy: start Renavex in
month k (a first dispensing that month) vs do not start in month k. Outcome: kidney failure within 24
months of the trial start (death first counts as 'no kidney failure': a competing event). Everyone is
followed for 24 months or to death, so the outcome is observed for every person-trial.
"""
import os
import numpy as np
import pandas as pd
from corridor.m2 import M2
from corridor.rwe import START, D
M3 = os.path.join(os.path.dirname(M2), "m3")
TRIALS = os.path.join(M3, "trials.parquet").replace("\\", "/")
N_TRIALS, FOLLOW_MONTHS = 12, 24
TRIALS_SQL = f"""
WITH k AS (SELECT range AS trial, (DATE '{START}' + to_months(range))::DATE AS t0 FROM range({N_TRIALS})),
b AS (SELECT * FROM rwe_base),
labs AS (SELECT * FROM read_csv('{D}/rwe_labs.csv')),
last_egfr AS (
SELECT k.trial, l.person_id, arg_max(l.value, l.lab_date) AS egfr, max(l.lab_date) AS egfr_date
FROM k JOIN labs l ON l.test = 'egfr' AND l.lab_date < k.t0 GROUP BY 1, 2),
last_uacr AS (
SELECT k.trial, l.person_id, arg_max(l.value, l.lab_date) AS uacr
FROM k JOIN labs l ON l.test = 'uacr' AND l.lab_date < k.t0 GROUP BY 1, 2)
SELECT k.trial, k.t0, b.person_id,
coalesce(b.renavex_date >= k.t0 AND b.renavex_date < k.t0 + INTERVAL 1 MONTH, false)::INT AS start,
(b.renavex_date IS NOT NULL)::INT AS ever_renavex,
e.egfr, date_diff('day', e.egfr_date, k.t0) AS egfr_age_days, coalesce(u.uacr >= 30, false)::INT AS albuminuria,
(b.sglt2_2025 = 1 OR coalesce(b.new_sglt2_date < k.t0, false))::INT AS sglt2,
b.age + k.trial / 12 AS age, b.male, b.qc, b.nephrology_care, b.heart_failure, b.copd, b.prior_stays,
coalesce(b.kf_date < k.t0 + to_months({FOLLOW_MONTHS}), false)::INT AS kf24,
coalesce(b.death_date < k.t0 + to_months({FOLLOW_MONTHS}), false)::INT AS death24
FROM k CROSS JOIN b
JOIN last_egfr e ON e.trial = k.trial AND e.person_id = b.person_id
LEFT JOIN last_uacr u ON u.trial = k.trial AND u.person_id = b.person_id
WHERE b.renavex_2025 = 0
AND coalesce(b.renavex_date >= k.t0, true)
AND coalesce(b.death_date >= k.t0, true) AND coalesce(b.kf_date >= k.t0, true)
AND e.egfr_date >= k.t0 - INTERVAL 365 DAY AND e.egfr BETWEEN 20 AND 60
ORDER BY k.trial, b.person_id"""
"""Day 22.2: build the sequential trials (m3/trials.parquet) from the real-world extract."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import warehouse # noqa: E402
from corridor.rwe import baseline # noqa: E402
from corridor.tte import build, load # noqa: E402
con = warehouse()
n = build(con, baseline(con))
t = load()
print(f"m3/trials.parquet: {n:,} person-trials, {t.person_id.nunique():,} people")
s = t.groupby("trial").agg(eligible=("person_id", "size"), start=("start", "sum"), kf24=("kf24", "sum")).astype(int)
s.index = s.index.astype(int)
print(s.T.to_string())
print(f"\nstarters: {int(t.start.sum()):,} person-trials; each person starts at most once: "
f"{t[t.start == 1].person_id.is_unique}")
m3/trials.parquet: 88,890 person-trials, 8,660 people
trial 0 1 2 3 4 5 6 7 8 9 10 11
eligible 8092 8013 7904 7746 7603 7463 7325 7192 7074 6942 6817 6719
start 61 58 108 100 87 103 77 92 106 94 74 81
kf24 162 156 158 150 139 118 114 108 112 107 104 102
starters: 1,041 person-trials; each person starts at most once: True
88,890 person-trials from 8,660 people, 1,041 of them starts. Twelve trials of about 87 starters each would be too small; pooled, they make one study. People who started Renavex in 2025 never enter (prevalent users), and people with kidney failure, death or no recent eGFR before a trial's start are not eligible for it.
22.3 The g-formula and the person-level bootstrap (60 min)
Fit an outcome model for kidney failure within 24 months with start and the confounders at time zero, then predict every person-trial's risk twice, once with start = 1 and once with start = 0, and average. This is the g-formula (standardization): risks for the same people under both strategies. Averaging over everyone gives the effect in all eligible person-trials; over starters, the effect in the people who actually started.
def standardized_risks(t, outcome="kf24", x=COVARIATES):
"""Outcome model (logistic, with start x covariates), then predict everyone's risk with start = 1 and
with start = 0 and average: the g-formula. Returns (model, risk if start, risk if not, the same among starters)."""
import statsmodels.formula.api as smf
m = smf.logit(f"{outcome} ~ start + {x}", t).fit(disp=0, method="newton", maxiter=50)
r1, r0 = m.predict(t.assign(start=1)), m.predict(t.assign(start=0))
s = t.start == 1
return m, float(r1.mean()), float(r0.mean()), float(r1[s].mean()), float(r0[s].mean())
def cluster_bootstrap(t, fn, reps=200, seed=2026):
"""Resample PEOPLE (with all their person-trials), recompute fn(t)."""
rng = np.random.default_rng(seed)
groups = t.groupby("person_id").indices
ids = np.array(list(groups))
out = []
for _ in range(reps):
pick = rng.choice(ids, len(ids))
out.append(fn(t.iloc[np.concatenate([groups[i] for i in pick])]))
return pd.DataFrame(out)
"""Day 22.3-22.4: the emulated trial - crude and adjusted risks, the g-formula, and a Cox model."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import time # noqa: E402
import numpy as np # noqa: E402
from statsmodels.duration.hazard_regression import PHReg # noqa: E402
from corridor.tte import COVARIATES, cluster_bootstrap, load, standardized_risks # noqa: E402
t = load()
crude = t.groupby("start").kf24.mean()
print(f"crude 24-month risk of kidney failure: started {crude[1]:.4f}, did not start {crude[0]:.4f} "
f"(ratio {crude[1] / crude[0]:.2f})")
print("baseline eGFR, mean: started {:.1f}, did not start {:.1f}".format(*t.groupby("start").egfr.mean()[[1, 0]]))
m, r1, r0, r1s, r0s = standardized_risks(t)
print(f"\nadjusted odds ratio for starting: {np.exp(m.params['start']):.2f}")
print(f"g-formula, all eligible person-trials: risk if start {r1:.4f}, if not {r0:.4f}, "
f"difference {r1 - r0:+.4f}, ratio {r1 / r0:.2f}")
print(f"g-formula, among those who started: risk if start {r1s:.4f}, if not {r0s:.4f}, "
f"difference {r1s - r0s:+.4f}, ratio {r1s / r0s:.2f}")
t0 = time.time()
boot = cluster_bootstrap(t, lambda d: dict(zip(("r1", "r0", "r1s", "r0s"), standardized_risks(d)[1:])), reps=200)
lo, hi = np.quantile(boot.r1 / boot.r0, [0.025, 0.975])
lo_s, hi_s = np.quantile(boot.r1s / boot.r0s, [0.025, 0.975])
print(f"95% CI (200 bootstraps of people): risk ratio, all {lo:.2f}-{hi:.2f}; among starters {lo_s:.2f}-{hi_s:.2f}")
t["t"] = np.where(t.kf24 == 1, 1, 0) # placeholder for Cox time, replaced below
crude 24-month risk of kidney failure: started 0.0403, did not start 0.0169 (ratio 2.38)
baseline eGFR, mean: started 35.4, did not start 44.5
adjusted odds ratio for starting: 0.78
g-formula, all eligible person-trials: risk if start 0.0138, if not 0.0173, difference -0.0035, ratio 0.80
g-formula, among those who started: risk if start 0.0403, if not 0.0502, difference -0.0099, ratio 0.80
95% CI (200 bootstraps of people): risk ratio, all 0.55-1.01; among starters 0.56-1.01
Crude, starters had 2.4 times the risk: their eGFR was 9 points lower. After standardization, starting Renavex lowers the 24-month risk of kidney failure from 5.0% to 4.0% among starters (risk ratio 0.80, 95% CI 0.56 to 1.01). Because each person appears in up to 12 trials, the bootstrap resamples people, keeping all their person-trials together; resampling rows would treat 12 copies of one person as 12 independent patients.
The outcome is fully observed (24 months for everyone, death being a competing event), so no censoring adjustment is needed. With loss to follow-up, Day 26's inverse probability of censoring weights would be.
Check it in R:
# Day 22: the g-formula for the emulated trial in R, from the same person-trial file.
suppressPackageStartupMessages({ library(DBI); library(duckdb) })
con <- dbConnect(duckdb(shared_home = FALSE))
t <- dbGetQuery(con, "SELECT * FROM read_parquet('m3/trials.parquet')")
dbDisconnect(con, shutdown = TRUE)
t <- transform(t, egfr10 = (45 - egfr) / 10, age10 = (age - 70) / 10)
fit <- glm(kf24 ~ start + egfr10 + albuminuria + sglt2 + age10 + male + qc + nephrology_care + heart_failure + copd +
prior_stays, family = binomial, data = t)
r1 <- predict(fit, transform(t, start = 1), type = "response")
r0 <- predict(fit, transform(t, start = 0), type = "response")
s <- t$start == 1
cat(sprintf("odds ratio %.2f\nall eligible: %.4f vs %.4f (ratio %.2f)\nstarters: %.4f vs %.4f (ratio %.2f)\n",
exp(coef(fit)[["start"]]), mean(r1), mean(r0), mean(r1) / mean(r0), mean(r1[s]), mean(r0[s]),
mean(r1[s]) / mean(r0[s])))
odds ratio 0.78
all eligible: 0.0138 vs 0.0173 (ratio 0.80)
starters: 0.0403 vs 0.0502 (ratio 0.80)
22.4 Truth check (30 min)
For every eligible person-trial, the generator ran the person's next 24 months twice with the same random numbers: once starting Renavex that month, once not (and then usual care). Their average is the true effect of exactly the contrast the emulation targets.
"""Day 22.5 (truth check): the generator ran every eligible person-trial twice - starting Renavex that
month and not starting it - with the same luck. Compare the emulated trial with those true risks."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import duckdb # noqa: E402
from corridor.tte import load, standardized_risks # noqa: E402
from corridor.truth import TRUTH # noqa: E402
t = load()
truth = duckdb.sql(f"SELECT * FROM read_csv('{TRUTH}/rwe_sequential_truth.csv')").df()
t["trial"] = t.trial.astype(int)
both = t.merge(truth, on=["person_id", "trial"])
print(f"person-trials: emulation {len(t):,}, generator {len(truth):,}, in both {len(both):,} "
f"(the rest sit on the eGFR 20/60 boundary after rounding)")
_, r1, r0, r1s, r0s = standardized_risks(t)
s = both.started == 1
print(f"{'':<28}{'risk if start':>14}{'if not':>9}{'ratio':>7}")
print(f"{'emulation, all eligible':<28}{r1:>14.4f}{r0:>9.4f}{r1 / r0:>7.2f}")
print(f"{'TRUTH, all eligible':<28}{both.kf24_start.mean():>14.4f}{both.kf24_no_start.mean():>9.4f}"
f"{both.kf24_start.mean() / both.kf24_no_start.mean():>7.2f}")
print(f"{'emulation, starters':<28}{r1s:>14.4f}{r0s:>9.4f}{r1s / r0s:>7.2f}")
print(f"{'TRUTH, starters':<28}{both.kf24_start[s].mean():>14.4f}{both.kf24_no_start[s].mean():>9.4f}"
f"{both.kf24_start[s].mean() / both.kf24_no_start[s].mean():>7.2f}")
person-trials: emulation 88,890, generator 88,766, in both 88,766 (the rest sit on the eGFR 20/60 boundary after rounding)
risk if start if not ratio
emulation, all eligible 0.0138 0.0173 0.80
TRUTH, all eligible 0.0126 0.0173 0.73
emulation, starters 0.0403 0.0502 0.80
TRUTH, starters 0.0395 0.0510 0.77
Among starters, the emulation estimates 4.03% vs 5.02% (risk ratio 0.80); the truth is 3.95% vs 5.10% (0.77). The estimate is within its confidence interval of the truth, and the crude comparison (2.38) was not even on the right side of 1. For all eligible person-trials, the emulation gives 0.80 against a true 0.73: the outcome model has to extrapolate from people who started (low eGFR) to the many low-risk people who rarely do.
Try it (15 min). Run the same emulation for death within 24 months and compare with the truth.
Solution
"""Day 22 try it: the same emulated trial for death within 24 months, against the truth."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import duckdb # noqa: E402
from corridor.tte import load, standardized_risks # noqa: E402
from corridor.truth import TRUTH # noqa: E402
t = load()
_, r1, r0, r1s, r0s = standardized_risks(t, outcome="death24")
truth = duckdb.sql(f"SELECT * FROM read_csv('{TRUTH}/rwe_sequential_truth.csv')").df()
s = truth.started == 1
print(f"emulation, starters: risk of death if start {r1s:.4f}, if not {r0s:.4f}, ratio {r1s / r0s:.2f}")
print(f"TRUTH, starters: risk of death if start {truth.death24_start[s].mean():.4f}, if not "
f"{truth.death24_no_start[s].mean():.4f}, ratio {truth.death24_start[s].mean() / truth.death24_no_start[s].mean():.2f}")
emulation, starters: risk of death if start 0.0749, if not 0.0779, ratio 0.96
TRUTH, starters: risk of death if start 0.0770, if not 0.0857, ratio 0.90
The emulation finds a 4% reduction in deaths among starters, the truth is 10%. Death has more causes than the model sees, frailty above all, which the DAG (21.4) already said could not be adjusted for with these data. Day 28 puts a number on how strong such a confounder would have to be.
22.5 A NULL in the treatment column (20 min)
Bug of the day. The first version of the trials query built start as (renavex_date in month k)::INT. For people never dispensed Renavex, renavex_date is NULL, a comparison with NULL is NULL, and so was start. The model ran without complaint on the rows it could use:
"""Day 22 bug of the day: a NULL in the treatment column.
The first version of the trials query wrote start as (renavex_date in month k)::INT. For people who
never started Renavex, renavex_date is NULL, so start was NULL too - and the model quietly dropped them.
"""
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.tte import load, standardized_risks # noqa: E402
t = load()
buggy = t.copy()
buggy.loc[buggy.ever_renavex == 0, "start"] = np.nan # what the NULL did: never-users drop out
m, r1, r0, r1s, r0s = standardized_risks(buggy)
print(f"rows in the data {len(buggy):,}; rows the model used {int(m.nobs):,}")
print(f"with the NULLs: risk ratio among starters {r1s / r0s:.2f} <- Renavex 'harms' kidneys")
m, r1, r0, r1s, r0s = standardized_risks(t)
print(f"fixed: risk ratio among starters {r1s / r0s:.2f}")
rows in the data 88,890; rows the model used 28,589
with the NULLs: risk ratio among starters 1.48 <- Renavex 'harms' kidneys
fixed: risk ratio among starters 0.80
The model silently dropped 60,000 person-trials of people who never started, keeping only future users as controls. Future users are sicker, and the drug looked harmful (risk ratio 1.48). One coalesce(..., false) fixes it, and tests/test_days_21_23.py now checks that start is never NULL. Compare the rows your model used with the rows in your data, every time.
Why it matters at work: CDA-AMC's guidance for reporting real-world evidence asks for a clear description of the study design. Agencies, journals and sponsors increasingly expect that description framed as a target trial, with a table like this one in the protocol.
Where you'll meet this: RWE protocols and statistical analysis plans; comparative effectiveness for reassessments; sequential trial designs in pharmacoepidemiology
22.6 Mini-project: the protocol, written down (70 min)
Write the protocol table, with the emulation next to each component and the numbers filled in from the data, to docs/target_trial_protocol.md:
"""Day 22 mini-project: the target trial protocol, written next to its emulation (docs/target_trial_protocol.md)."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import ROOT # noqa: E402
from corridor.tte import N_TRIALS, load, standardized_risks # noqa: E402
t = load()
_, r1, r0, r1s, r0s = standardized_risks(t)
rows = [
("Eligibility", "Adults with type 2 diabetes and CKD (eGFR 20-60), not on dialysis, never treated with Renavex",
f"In the extract, alive and free of kidney failure at the trial start, no Renavex dispensing before (2025 users "
f"excluded), an eGFR of 20-60 in the previous 12 months: {len(t):,} person-trials, {t.person_id.nunique():,} people"),
("Treatment strategies", "Start Renavex now vs do not start now (usual care)",
f"A first Renavex dispensing in the trial month vs none: {int(t.start.sum()):,} starts"),
("Assignment", "Random", "Not random: the outcome model adjusts for eGFR, albuminuria, SGLT2 use, age, sex, "
"province, nephrology care, heart failure, COPD and prior stays (the DAG's set and more)"),
("Time zero", "Randomization", f"The first day of the trial month ({N_TRIALS} monthly trials, January-December 2026)"),
("Outcome", "Kidney failure within 24 months", "First kidney failure in the extract within 24 months; death first counts as no kidney failure"),
("Follow-up", "From randomization for 24 months", "From the first of the month for 24 months (complete for everyone)"),
("Causal contrast", "Intention to treat", "Intention to treat: starting in month k, whatever happened after"),
("Analysis", "Compare risks by arm", "Logistic outcome model and standardization (g-formula); people resampled in the bootstrap because they appear in up to 12 trials"),
]
lines = ["# Target trial: Renavex and kidney failure in routine care", "",
"| Component | Target trial | Emulation in the Corridor Health extract |", "|---|---|---|"]
lines += [f"| {a} | {b} | {c} |" for a, b, c in rows]
lines += ["", f"**Result.** Among people who started, 24-month risk of kidney failure {r1s:.1%} vs {r0s:.1%} had they not "
f"started (risk ratio {r1s / r0s:.2f}); among all eligible person-trials {r1:.1%} vs {r0:.1%} (ratio {r1 / r0:.2f})."]
os.makedirs(os.path.join(ROOT, "docs"), exist_ok=True)
with open(os.path.join(ROOT, "docs", "target_trial_protocol.md"), "w", encoding="utf-8", newline="\n") as f:
f.write("\n".join(lines) + "\n")
print("\n".join(lines))
# Target trial: Renavex and kidney failure in routine care
| Component | Target trial | Emulation in the Corridor Health extract |
|---|---|---|
| Eligibility | Adults with type 2 diabetes and CKD (eGFR 20-60), not on dialysis, never treated with Renavex | In the extract, alive and free of kidney failure at the trial start, no Renavex dispensing before (2025 users excluded), an eGFR of 20-60 in the previous 12 months: 88,890 person-trials, 8,660 people |
| Treatment strategies | Start Renavex now vs do not start now (usual care) | A first Renavex dispensing in the trial month vs none: 1,041 starts |
| Assignment | Random | Not random: the outcome model adjusts for eGFR, albuminuria, SGLT2 use, age, sex, province, nephrology care, heart failure, COPD and prior stays (the DAG's set and more) |
| Time zero | Randomization | The first day of the trial month (12 monthly trials, January-December 2026) |
| Outcome | Kidney failure within 24 months | First kidney failure in the extract within 24 months; death first counts as no kidney failure |
| Follow-up | From randomization for 24 months | From the first of the month for 24 months (complete for everyone) |
| Causal contrast | Intention to treat | Intention to treat: starting in month k, whatever happened after |
| Analysis | Compare risks by arm | Logistic outcome model and standardization (g-formula); people resampled in the bootstrap because they appear in up to 12 trials |
**Result.** Among people who started, 24-month risk of kidney failure 4.0% vs 5.0% had they not started (risk ratio 0.80); among all eligible person-trials 1.4% vs 1.7% (ratio 0.80).
This table is the first page of the Module 3 capstone protocol (Day 30). Add a paragraph on the two weakest components: assignment (adjustment replaces randomization, and frailty is unmeasured) and the causal contrast (intention to treat; per-protocol needs Day 26).
22.7 Save your work
python -m pytest -q
git add .
git commit -m "Day 22: target trial emulation with sequential trials and the g-formula"
Day 22 checklist
- I can write a target trial protocol and its emulation, component by component
- My eligibility, treatment assignment and start of follow-up all happen at the same time zero
- I compare new users, never prevalent users
- I estimate standardized risks with the g-formula and bootstrap people, not rows
- I check how many rows my model actually used
Bloc français (30 min)
Thème : l'émulation d'un essai cible.
Pour estimer l'effet du Renavex avec des données administratives, on décrit d'abord l'essai randomisé que l'on voudrait réaliser. On l'émule ensuite avec les données disponibles. Au temps zéro, les patients doivent être admissibles, la décision de traitement doit être prise et le suivi doit commencer. On compare des nouveaux utilisateurs, jamais des utilisateurs prévalents.
| Français | English |
|---|---|
| l'émulation d'un essai cible | target trial emulation |
| le protocole | the protocol |
| les critères d'admissibilité | eligibility criteria |
| le temps zéro | time zero |
| le nouvel utilisateur | the new user |
| l'utilisateur prévalent | the prevalent user |
| l'analyse en intention de traiter | intention-to-treat analysis |
| l'analyse per protocole | per-protocol analysis |
| la standardisation (formule g) | standardization (the g-formula) |
| le risque à 24 mois | the 24-month risk |
| les essais séquentiels | sequential trials |
| le rééchantillonnage par personne | resampling people (cluster bootstrap) |
Exercices
- Translate: "At time zero, eligibility, treatment and follow-up start together."
- Translate: « Une valeur manquante dans la colonne de traitement a fait disparaître 60 000 lignes. »
- In three French sentences, explain why we compare new users.
Réponses
- Au temps zéro, l'admissibilité, le traitement et le suivi commencent ensemble.
- "A missing value in the treatment column made 60,000 rows disappear."
- Example: Les utilisateurs prévalents ont déjà survécu aux premiers mois de traitement. Ceux qui ont arrêté à cause d'effets indésirables ou qui sont décédés ne sont plus là. Les nouveaux utilisateurs permettent de suivre tout le monde depuis le début du traitement.