Panel Econometrics on Claims
Administrative data follow the same people year after year, which is a panel. Panels let you compare each person with themselves, removing everything about them that does not change over time. Today you build a person-year panel from the warehouse and estimate the annual public cost of a diabetes diagnosis. You compare pooled OLS with fixed effects, cluster the standard errors by person, and draw an event study around the diagnosis year. The truth check shows that the year diabetes enters the claims is not always the year it began.
By the end of today you can
- build a person-year panel from claims and check its rows by year
- explain what person fixed effects remove and what they cannot (things that change over time)
- cluster standard errors by person, and I know when clustering is unreliable (few clusters)
- draw an event study, check pre-trends, and know that a single TWFE coefficient averages dynamic effects
- include year effects (and constant dollars), and I treat a claims diagnosis date as a measured exposure, not onset
Today's 5.5-hour plan
In this lesson
19.1 A person-year panel from the warehouse (35 min)
Population: adults aged 40–79 on 1 January 2019, observed all of 2019, with no diabetes diagnosis by the end of 2019 (Day 5's Ontario case definition). One row for each full calendar year they were observed, 2019–2025, with their public payer costs in 2025 dollars (Day 7's fct_person_year_costs). dx switches to 1 in the year of their first diabetes diagnosis and stays on.
"""Day 19: a person-year panel from the warehouse, and fixed-effects regression with clustered SEs.
Panel: adults aged 40-79 on 1 January 2019, observed for all of 2019, with no diabetes diagnosis by the
end of 2019 (Ontario case definition). Each full calendar year 2019-2025 they are observed is a row.
dx = 1 from the year of a first diabetes diagnosis (2020-2025) onward. Costs are public payer costs in
2025 dollars.
"""
import os
import numpy as np
import pandas as pd
from corridor.cohort import diabetes_case_dates
from corridor.m2 import M2
PANEL = os.path.join(M2, "panel.parquet").replace("\\", "/")
def panel_sql(con):
dx = diabetes_case_dates(con, "ontario")
return f"""
WITH dx AS ({dx}),
base AS (
SELECT y.person_id FROM fct_person_years y
WHERE y.year = 2019 AND y.days_observed = 365 AND y.age_jan1 BETWEEN 40 AND 79
AND y.person_id NOT IN (SELECT person_id FROM dx WHERE case_date <= DATE '2019-12-31'))
SELECT y.person_id, y.year, y.province, y.sex, y.age_jan1 AS age, y.income_quintile,
year(d.case_date) AS dx_year,
(d.case_date IS NOT NULL AND year(d.case_date) <= y.year)::INT AS dx,
c.hospital, c.physician, c.drug, c.total_2025 AS cost
FROM fct_person_years y
JOIN base USING (person_id)
JOIN fct_person_year_costs c USING (person_id, year)
LEFT JOIN dx d USING (person_id)
WHERE y.days_observed = date_diff('day', make_date(y.year, 1, 1), make_date(y.year, 12, 31)) + 1
-- full calendar years only (2020 and 2024 have 366 days)
ORDER BY y.person_id, y.year"""
"""Day 19: build the person-year panel (m2/panel.parquet) from the warehouse."""
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.panel import build, load # noqa: E402
n = build(warehouse())
p = load()
print(f"m2/panel.parquet: {n:,} person-years, {p.person_id.nunique():,} people, years {p.year.min()}-{p.year.max()}")
first = p.groupby("person_id").dx_year.first()
print(f"diagnosed with diabetes during 2020-2025: {first.notna().sum():,} people; never: {first.isna().sum():,}")
print(first.value_counts().sort_index().rename("people diagnosed").to_string())
print(f"person-years per person: mean {p.groupby('person_id').size().mean():.2f} (deaths and late registration make the panel unbalanced)")
m2/panel.parquet: 826,358 person-years, 121,421 people, years 2019-2025
diagnosed with diabetes during 2020-2025: 15,270 people; never: 106,151
dx_year
2020.0 2750
2021.0 2045
2022.0 2212
2023.0 2568
2024.0 2714
2025.0 2981
person-years per person: mean 6.81 (deaths and late registration make the panel unbalanced)
One detail caught this lesson's first draft: "full year" first meant days_observed = 365, which silently dropped every person-year in 2020, a leap year. 2024 had been special-cased, 2020 had not. The panel looked fine, and the models ran. Only the year dummy for 2020 came out with two observations. Count rows by year before you model a panel.
19.2 Pooled OLS and fixed effects (40 min)
Two ways to estimate what a diagnosis does to annual cost:
- Pooled OLS compares person-years with and without diabetes, adjusting for observed characteristics (age, sex, year). Anything unobserved that differs between people who get diabetes and people who don't (frailty, income, habits) is mixed into the estimate.
- Person fixed effects give each person their own intercept, so each person is compared with themselves before and after. Anything stable about a person drops out. Computationally, subtract each person's mean from every variable (the within transformation) and run OLS.
def demean(df, cols, by="person_id"):
"""Subtract each person's mean (the within transformation)."""
return df[cols] - df.groupby(by)[cols].transform("mean")
def ols_cluster(y, X, groups, names):
"""OLS (X includes its own constant) with three kinds of SE: classical, heteroskedasticity-robust (HC1)
and clustered by group (CR1)."""
return _fit(np.asarray(y, float), np.asarray(X, float), np.asarray(groups), names, 0)
def fe_cluster(df, y, x, by="person_id"):
"""Person fixed effects by demeaning, then OLS with clustered SEs (by person)."""
d = demean(df, [y] + x, by)
return _fit(d[y].to_numpy(float), d[x].to_numpy(float), df[by].to_numpy(), x, df[by].nunique())
def _fit(y, X, g, names, absorbed):
n, k = X.shape
xtx_inv = np.linalg.inv(X.T @ X)
b = xtx_inv @ X.T @ y
e = y - X @ b
dof = n - k - absorbed
v_classic = xtx_inv * (e @ e / dof)
meat_hc = (X * e[:, None]).T @ (X * e[:, None])
v_hc1 = xtx_inv @ meat_hc @ xtx_inv * n / dof
codes, uniq = pd.factorize(g)
G = len(uniq)
sums = np.zeros((G, k))
np.add.at(sums, codes, X * e[:, None])
v_cl = xtx_inv @ (sums.T @ sums) @ xtx_inv * (G / (G - 1)) * ((n - 1) / (n - k))
return pd.DataFrame({"coef": b, "se_classic": np.sqrt(np.diag(v_classic)), "se_hc1": np.sqrt(np.diag(v_hc1)),
"se_cluster": np.sqrt(np.diag(v_cl))}, index=names)
"""Day 19.2: pooled OLS vs person fixed effects for the annual cost of a diabetes diagnosis."""
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.panel import YEARS, fe_cluster, load, ols_cluster # noqa: E402
p = load()
ever = p.dx_year.notna()
print(f"mean cost per person-year: never diagnosed {p.cost[~ever].mean():,.0f}; "
f"ever diagnosed, before diagnosis {p.cost[ever & (p.dx == 0)].mean():,.0f}, after {p.cost[p.dx == 1].mean():,.0f}")
X = np.column_stack([np.ones(len(p)), p[["dx", "male", "age", "age2"] + YEARS].to_numpy(float)])
pooled = ols_cluster(p.cost, X, p.person_id, ["const", "dx", "male", "age", "age2"] + YEARS)
fe = fe_cluster(p, "cost", ["dx", "age2"] + YEARS)
print(f"\npooled OLS (age, sex, year): diabetes adds {pooled.coef['dx']:,.0f} per year (cluster SE {pooled.se_cluster['dx']:.0f})")
print(f"person + year fixed effects (within): diabetes adds {fe.coef['dx']:,.0f} per year (cluster SE {fe.se_cluster['dx']:.0f})")
print("(age is absorbed by person + year effects except its curvature, age2)")
mean cost per person-year: never diagnosed 1,172; ever diagnosed, before diagnosis 1,417, after 2,827
pooled OLS (age, sex, year): diabetes adds 1,438 per year (cluster SE 30)
person + year fixed effects (within): diabetes adds 1,382 per year (cluster SE 36)
(age is absorbed by person + year effects except its curvature, age2)
People who will be diagnosed already cost more before diagnosis ($1,417 against $1,172 per year): they are older and sicker. Pooled OLS with age and sex gives $1,438 per year after a diagnosis, and fixed effects give $1,382. They are close here because, in the generator, who develops diabetes depends on age, sex and income, which pooled OLS controls for. In real data, unobserved stable traits usually make the gap larger. The test test_fixed_effects_remove_a_stable_confounder builds a panel where pooled OLS is badly biased and fixed effects are not.
With person and year effects, age itself cannot be estimated: within a person, age rises by one each year, exactly like the year effects. Only its curvature (age2) remains.
19.3 Clustered standard errors (30 min)
Each person contributes up to 7 rows, and a person's costs are correlated from year to year. Classical standard errors treat the 826,358 rows as independent. Clustered standard errors treat each person as one unit of information:
"""Day 19.3: one person, up to seven rows - standard errors that know it."""
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.panel import YEARS, fe_cluster, load, ols_cluster # noqa: E402
p = load()
names = ["const", "dx", "male", "age", "age2"] + YEARS
X = np.column_stack([np.ones(len(p)), p[names[1:]].to_numpy(float)])
models = {"pooled OLS": ols_cluster(p.cost, X, p.person_id, names).loc["dx"],
"person fixed effects": fe_cluster(p, "cost", ["dx", "age2"] + YEARS).loc["dx"]}
print(f"{p.person_id.nunique():,} people (clusters), {len(p):,} person-years")
print(f"{'':<22}{'estimate':>9}{'classical':>11}{'HC1':>8}{'clustered':>11}{'ratio':>7}")
for name, r in models.items():
print(f"{name:<22}{r.coef:>9,.0f}{r.se_classic:>11.1f}{r.se_hc1:>8.1f}{r.se_cluster:>11.1f}"
f"{r.se_cluster / r.se_classic:>7.2f}")
121,421 people (clusters), 826,358 person-years
estimate classical HC1 clustered ratio
pooled OLS 1,438 18.0 24.5 29.9 1.66
person fixed effects 1,382 27.4 33.4 35.6 1.30
Clustering raises the SE by 1.66× for pooled OLS and 1.30× for fixed effects. Fixed effects already absorb part of the within-person correlation (the stable part), so the correction is smaller. Cluster at the level where the correlation is, here the person. With few clusters (11 health regions, 2 provinces), clustered SEs are unreliable; Module 4 uses the wild cluster bootstrap for that.
19.4 Event study: before and after the diagnosis (40 min)
One coefficient for "after diagnosis" hides how the effect changes over time, and whether costs were already moving before. An event study replaces dx with one dummy for each year relative to the diagnosis (−4 to +5), leaving out the year before (−1) as the reference:
"""Day 19.4: an event study - cost in each year before and after diagnosis, relative to the year before."""
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
from corridor.db import ROOT # noqa: E402
from corridor.panel import EVENTS, YEARS, fe_cluster, load # noqa: E402
p = load()
r = fe_cluster(p, "cost", EVENTS + ["age2"] + YEARS).loc[EVENTS]
ks = [int(e.replace("e_m", "-").replace("e_", "")) for e in EVENTS]
print("years from diagnosis cost difference vs the year before 95% CI")
for k, (_, row) in zip(ks, r.iterrows()):
print(f"{k:>20} {row.coef:>12,.0f} {row.coef - 1.96 * row.se_cluster:>9,.0f} to {row.coef + 1.96 * row.se_cluster:,.0f}")
fig, ax = plt.subplots(figsize=(6.4, 3.6))
ax.errorbar(ks + [-1], list(r.coef) + [0], yerr=list(1.96 * r.se_cluster) + [0], fmt="o", color="#a78bfa", capsize=3)
ax.axhline(0, color="#888", lw=1)
ax.axvline(-0.5, color="#e5484d", lw=1, ls="--")
ax.set(xlabel="years from the first diabetes diagnosis", ylabel="extra cost per year (2025 $)",
title="Event study: public cost around a diabetes diagnosis")
fig.tight_layout()
fig.savefig(os.path.join(ROOT, "figures", "day19_event_study.png"), dpi=130)
years from diagnosis cost difference vs the year before 95% CI
-4 -1 -100 to 98
-3 48 -44 to 139
-2 16 -68 to 101
0 1,228 1,133 to 1,322
1 1,420 1,311 to 1,529
2 1,544 1,422 to 1,667
3 1,632 1,489 to 1,775
4 1,867 1,694 to 2,040
5 1,733 1,521 to 1,944

- No pre-trend. The years before diagnosis are within $50 of the reference year. If costs had been rising before diagnosis, the post-diagnosis jump would partly reflect that rise rather than the diagnosis.
- A jump, then growth. Costs rise by $1,228 in the year of diagnosis and keep climbing to about $1,800 four to five years later, as complications accumulate. The single fixed-effects coefficient ($1,382) is a weighted average of these.
- Caution for Module 4. With diagnoses staggered over 2020–2025, two-way fixed effects compare newly diagnosed people with people diagnosed earlier, and when effects grow over time those comparisons can bias the single coefficient. Day 33 covers the estimators built for that (Callaway–Sant'Anna).
Check it in R with fixest, which absorbs both sets of fixed effects:
# Day 19: the same two-way fixed-effects models with fixest (person and year fixed effects absorbed).
suppressPackageStartupMessages({ library(DBI); library(duckdb); library(fixest) })
con <- dbConnect(duckdb(shared_home = FALSE))
p <- dbGetQuery(con, "SELECT * FROM read_parquet('m2/panel.parquet')")
dbDisconnect(con, shutdown = TRUE)
p$age2 <- (p$age - 60)^2 / 100
fe <- feols(cost ~ dx + age2 | person_id + year, data = p, cluster = ~person_id)
cat(sprintf("dx: %.1f SE clustered by person %.1f (observations %d)\n", coef(fe)[["dx"]], se(fe)[["dx"]], nobs(fe)))
p$rel <- ifelse(is.na(p$dx_year), -1000, p$year - p$dx_year) # never diagnosed: a reference value
es <- feols(cost ~ i(rel, ref = c(-1, -1000), keep = -4:5) + age2 | person_id + year, data = p, cluster = ~person_id)
print(round(coeftable(es)[grep("rel", names(coef(es))), 1:2], 0))
dx: 1382.4 SE clustered by person 35.6 (observations 825400)
Estimate Std. Error
rel::-4 -1 51
rel::-3 48 47
rel::-2 16 43
rel::0 1228 48
rel::1 1420 56
rel::2 1544 63
rel::3 1632 73
rel::4 1867 88
rel::5 1733 108
fixest reproduces the coefficient, the clustered SE and every event-study estimate. It drops 958 singleton person-years (people seen only once), which carry no within-person information.
19.5 Truth check: diagnosis is not onset (25 min)
The panel measures diabetes by its first diagnosis in the claims. The truth file has the year it began.
"""Day 19.5 (truth check): the claims diagnosis year is not the year diabetes began.
data/truth/history.csv has each person's true onset date. People whose first CLAIMS diagnosis falls in
2020-2025 include some whose diabetes started years earlier but showed no claims in 2019.
"""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import duckdb # noqa: E402
from corridor.panel import YEARS, fe_cluster, load # noqa: E402
from corridor.truth import TRUTH # noqa: E402
p = load()
h = duckdb.sql(f"""SELECT person_id, year(diabetes_from::DATE) AS onset FROM read_csv('{TRUTH}/history.csv')
WHERE diabetes_from IS NOT NULL""").df()
p = p.merge(h, on="person_id", how="left")
people = p.groupby("person_id")[["dx_year", "onset"]].first()
dx = people[people.dx_year.notna()]
print(f"{len(dx):,} people with a first claims diagnosis in 2020-2025; their TRUE onset:")
print(f" same year {(dx.onset == dx.dx_year).mean():.1%}, earlier {(dx.onset < dx.dx_year).mean():.1%}, "
f"later {(dx.onset > dx.dx_year).mean():.1%}, no diabetes at all (false positive) {dx.onset.isna().mean():.1%}")
print(f" of those with true onset in 2020-2025, diagnosed in the claims by end-2025: "
f"{people[(people.onset >= 2020)].dx_year.notna().mean():.1%}")
truth = p[~(p.onset < 2020)].copy() # drop people whose diabetes began before the panel
truth["dx_true"] = (truth.onset <= truth.year).astype(float)
r_claims = fe_cluster(p, "cost", ["dx", "age2"] + YEARS).loc["dx"]
r_true = fe_cluster(truth, "cost", ["dx_true", "age2"] + YEARS).loc["dx_true"]
print(f"\nfixed effects, claims diagnosis year: {r_claims.coef:,.0f} (SE {r_claims.se_cluster:.0f})")
print(f"fixed effects, TRUE onset year: {r_true.coef:,.0f} (SE {r_true.se_cluster:.0f})")
15,270 people with a first claims diagnosis in 2020-2025; their TRUE onset:
same year 78.3%, earlier 16.4%, later 0.4%, no diabetes at all (false positive) 4.9%
of those with true onset in 2020-2025, diagnosed in the claims by end-2025: 97.1%
fixed effects, claims diagnosis year: 1,382 (SE 36)
fixed effects, TRUE onset year: 1,273 (SE 38)
Of the people first diagnosed in the claims during 2020–2025, 78% truly developed diabetes that year. 16% had it earlier, but had no claims in 2019 (Day 6's look-back problem), and 5% are false positives. With the true onset year, the fixed-effects estimate is $1,273, not $1,382. Some of the "effect of diagnosis" belongs to people whose diabetes was already established and more expensive. A claims-based exposure is measured with error, and the error moves the estimate.
Try it (15 min). Estimate the effect on public drug costs separately for people aged 40–64 and 65–79 in 2019. Why do they differ so much?
Solution
"""Day 19 try it: the diabetes effect on PUBLIC DRUG costs, for people under and over 65 in 2019."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.panel import YEARS, fe_cluster, load # noqa: E402
p = load()
age19 = p[p.year == 2019].set_index("person_id").age
p["group"] = p.person_id.map(lambda i: "65-79 in 2019" if age19.get(i, 0) >= 65 else "40-64 in 2019")
for g, d in p.groupby("group"):
r = fe_cluster(d, "drug", ["dx", "age2"] + YEARS).loc["dx"]
print(f"{g}: public drug cost +{r.coef:,.0f} per year (95% CI {r.coef - 1.96 * r.se_cluster:,.0f} to "
f"{r.coef + 1.96 * r.se_cluster:,.0f}), {d.person_id.nunique():,} people")
40-64 in 2019: public drug cost +195 per year (95% CI 181 to 209), 88,979 people
65-79 in 2019: public drug cost +461 per year (95% CI 438 to 484), 32,442 people
The public drug plan pays $461 more a year for people 65–79, and $195 for people under 65. Diabetes drugs cost the same at any age. The difference is who pays: in Ontario most people under 65 have their drugs paid by private plans, invisible to public data (Days 1–2). A panel of public claims measures the public payer's cost, not the cost of the disease.
19.6 Fixed effects without year effects (15 min)
Bug of the day. An analyst runs person fixed effects on nominal costs, without year effects:
"""Day 19 bug of the day: fixed effects in nominal dollars, without year effects."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
import duckdb # noqa: E402
from corridor.db import WAREHOUSE # noqa: E402
from corridor.panel import YEARS, fe_cluster, load # noqa: E402
p = load()
con = duckdb.connect(WAREHOUSE, read_only=True)
nominal = con.sql("SELECT person_id, year, total AS cost_nominal FROM fct_person_year_costs").df()
p = p.merge(nominal, on=["person_id", "year"])
for label, y, x in (("nominal $, no year effects", "cost_nominal", ["dx"]),
("nominal $, year effects", "cost_nominal", ["dx", "age2"] + YEARS),
("2025 $, year effects", "cost", ["dx", "age2"] + YEARS)):
r = fe_cluster(p, y, x).loc["dx"]
print(f"{label:<28} diabetes adds {r.coef:>6,.0f} per year")
nominal $, no year effects diabetes adds 1,539 per year
nominal $, year effects diabetes adds 1,348 per year
2025 $, year effects diabetes adds 1,382 per year
Without year effects, the estimate is $1,539, $191 too high. Everyone's nominal costs rise over time with prices, and diagnosed person-years are, by construction, later years. Year effects (or constant dollars, or both) take the common trend out. Fixed effects remove what is stable about a person, not what changes for everyone.
19.7 Mini-project: the annual cost of diabetes, by component (75 min)
For the Module 2 capstone: the extra annual public cost after a diabetes diagnosis, by component, with 95% CIs clustered by person, and by province.
"""Day 19 mini-project: the annual cost of a diabetes diagnosis, by component, for the burden-of-illness report."""
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.panel import YEARS, fe_cluster, load # noqa: E402
p = load()
rows = []
for comp in ("hospital", "physician", "drug", "cost"):
r = fe_cluster(p, comp, ["dx", "age2"] + YEARS).loc["dx"]
base = p[(p.dx == 0) & p.dx_year.notna()][comp].mean()
rows.append({"component": "total" if comp == "cost" else comp, "extra per year": round(r.coef),
"95% CI": f"{r.coef - 1.96 * r.se_cluster:,.0f} to {r.coef + 1.96 * r.se_cluster:,.0f}",
"mean before diagnosis": round(base)})
t = pd.DataFrame(rows)
print("Person and year fixed effects, SEs clustered by person, public payer, 2025 dollars")
print(t.to_string(index=False))
by_prov = {prov: fe_cluster(d, "cost", ["dx", "age2"] + YEARS).loc["dx"] for prov, d in p.groupby("province")}
print("\nby province: " + "; ".join(f"{k} {r.coef:,.0f} (SE {r.se_cluster:.0f})" for k, r in by_prov.items()))
Person and year fixed effects, SEs clustered by person, public payer, 2025 dollars
component extra per year 95% CI mean before diagnosis
hospital 757 697 to 818 1016
physician 286 268 to 305 211
drug 305 292 to 317 34
total 1382 1,313 to 1,452 1417
by province: ON 1,403 (SE 46); QC 1,349 (SE 57)
A diagnosis adds about $1,380 a year (95% CI $1,313 to $1,452), roughly doubling the public cost of the people diagnosed. Hospital care is the largest part ($757). Drugs rise from almost nothing to $305 a year, though that is the public share only (19.5). Ontario and Quebec are within one standard error of each other. Write one paragraph for the report, with the 19.5 caveat about diagnosis dates.
19.8 Save your work
python -m pytest -q
git add .
git commit -m "Day 19: person-year panel, fixed effects, clustered SEs, event study"
Day 19 checklist
- I can build a person-year panel from claims and check its rows by year
- I can explain what person fixed effects remove and what they cannot (things that change over time)
- I cluster standard errors by person, and I know when clustering is unreliable (few clusters)
- I draw an event study, check pre-trends, and know that a single TWFE coefficient averages dynamic effects
- I include year effects (and constant dollars), and I treat a claims diagnosis date as a measured exposure, not onset
Bloc français (30 min)
Thème : les données de panel.
Les données administratives suivent les mêmes personnes année après année : ce sont des données de panel. Les effets fixes individuels comparent chaque personne à elle-même avant et après le diagnostic. Ils éliminent toutes les caractéristiques stables, observées ou non. Les erreurs-types doivent être regroupées par personne, car les coûts d'une même personne sont corrélés d'une année à l'autre.
| Français | English |
|---|---|
| les données de panel | panel data |
| la personne-année | the person-year |
| les effets fixes individuels | person fixed effects |
| les effets fixes temporels | year (time) fixed effects |
| la transformation intra-individuelle | the within transformation |
| les moindres carrés ordinaires groupés | pooled OLS |
| les erreurs-types regroupées | clustered standard errors |
| l'étude d'événement | the event study |
| la tendance préalable | the pre-trend |
| la date de diagnostic | the diagnosis date |
| l'apparition de la maladie | disease onset |
| les dollars constants | constant dollars |
Exercices
- Translate: "Fixed effects compare each person with themselves."
- Translate: « Sans effets fixes temporels, l'inflation gonfle l'effet du diagnostic. »
- In three French sentences, explain why the diagnosis year is not the onset year.
Réponses
- Les effets fixes comparent chaque personne à elle-même.
- "Without year fixed effects, inflation inflates the effect of the diagnosis."
- Example: La date de diagnostic dans les données administratives est la date de la première facturation correspondante. Certaines personnes avaient le diabète depuis plusieurs années sans réclamation en 2019. Leur « nouveau » diagnostic est donc en réalité un cas déjà établi.