Applied Health Economics, RWE & HTA
Overview / Module 4
Module 4 · Part 2 · Causal evidence · Days 31–40

Health Policy Evaluation and Quasi-Experiments

Interrupted time series, difference-in-differences across provinces, synthetic control, regression discontinuity, IV, program evaluation and equity.

Tools

PythonstatsmodelsRfixestdidSynthivreg

Module capstone

Policy brief on a provincial reimbursement change

The 10 days

About this module

Module 3 asked whether a drug works for the patients who take it. Module 4 asks what a policy did: a formulary listing, a new clinic program, an eligibility rule. Nobody can randomize a province, so policy evaluation relies on designs that compare places and times: interrupted time series, difference-in-differences, staggered adoption, synthetic control, regression discontinuity and instrumental variables. These are the methods of provincial ministries, CIHI, the federal evaluation function (Treasury Board's Policy on Results) and health services researchers. As always, the generator knows what each policy really did.

The policy panel. python data/make_data.py now also writes:

FileWhat
drug_utilization_monthly.csv11 regions × 84 months (January 2021 to December 2027): people with diabetes, new SGLT2 inhibitor users, new Renavex users, and UACR (urine albumin) tests, in the style of NPDUIS and CIHI aggregate tables
kidney_clinic_rollout.csvthe month each region opened a regional kidney care clinic (7 regions, 2023–2026; 4 never did)
truth/policy_truth.csvhidden: each region-month's expected rates under what happened and under "no listing" and "no clinic"

These aggregate tables cover each region's whole population, so their counts are about 40 times the person-level files' sample. Earlier files come out byte-identical. New R packages: did, sandwich and lmtest (in r/packages.R).

What you build in Days 31–33

DayYou buildYou learn
31corridor/policy.py: the panel, its()Segmented regression, seasonality, autocorrelation (Newey–West vs GLS AR(1)), the projected counterfactual, history threats
32did_2x2(), wild_cluster_bootstrap()Difference-in-differences by hand and as two-way fixed effects, parallel trends, event studies, placebo tests, inference with few clusters, contaminated controls
33callaway_santanna(), aggregate(), imputation_att(), twfe_weights()Why two-way fixed effects fails with staggered adoption, clean comparisons (Callaway–Sant'Anna), the imputation estimator, event-study plots

What you build in Days 34–36

DayYou buildYou learn
34corridor/quasi.py: synth_weights(), synth(), placebo_in_space()Synthetic control: donor weights, pre-period fit, placebo inference, donor pool choices
35rd_local_linear()Sharp and fuzzy regression discontinuity, bandwidths, validity checks, placebo cutoffs
36tsls(), prescriber_preference(), landmark_frame()Instrumental variables, compliers and LATE, weak instruments, the exclusion restriction, physician preference instruments

New data. python data/make_data.py now also writes two course scenarios (both invented, like everything in Corridor Health):

FileWhat
provincial_diabetes_quarterly.csv10 provinces × 48 quarters (2016–2027): adults with diabetes and emergency department visits for glycemic emergencies (hypo- and hyperglycemia). Ontario starts covering continuous glucose monitors (CGM) for adults with type 2 diabetes on insulin in 2024 Q1; Saskatchewan does the same in 2025 Q3
young_adults_t1d_2024.csv336,000 person-months in 2024 for 28,000 young adults (21–29) with type 1 diabetes in Ontario and Quebec: age, public drug coverage, insulin fills, ED visits for diabetic ketoacidosis (DKA). Like OHIP+, Ontario's public plan covers people under 25 without a private plan; Quebec's public plan covers anyone without a private plan at any age

Earlier files are byte-identical. Hidden truths are in truth/cgm_policy_truth.csv and truth/young_adults_truth.csv. New R packages: Synth, ivreg, AER, estimatr. rdrobust (the standard RD package) is on CRAN; the R check here does RD by hand with fixest so that every step is visible.

What you build in Days 37–39

DayYou buildYou learn
37corridor/evaluation.py: results_chain(), extra_tests(), clinic_costs()Logic models, the Policy on Results (relevance, effectiveness, efficiency), performance indicators vs impact, cost per output
38concentration_index(), stratum_wide()Health inequality measures, distributional effects of a policy, equity weights, coding conventions for deprivation indices
39did_effect(), tost()Placebos in time and on outcomes, what a "passed" placebo does and does not show, equivalence tests, writing limitations by threat to validity

New data. python data/make_data.py now also writes kidney_clinic_costs.csv (each clinic's yearly cost: $0.8 million to start, then about $6 per person with diabetes per year) and provincial_diabetes_quarterly_by_income.csv (Day 34's provincial counts split by neighbourhood income quintile and rurality; the strata add up exactly to the provincial file). Earlier files are byte-identical. The truth is in truth/cgm_policy_truth_by_income.csv.