← Homepage

➡️ Causal Inference

Author: Daniel Jordan Viray

Active-Comparator, New-User Cohort Study with Difference-in-Differences

Does Ozempic lower the cost of obesity care? A study design using claims and enrollment data, explained end to end

Difference-in-Differences

Did the program work? A state launches job training, a neighbor doesn’t — learn the 2×2 intuition, the regression you’d run at work, and the checks that keep you honest.

Inverse Probability of Treatment Weighting (IPTW)

When you can’t randomize, reweight instead: build a pseudo-population where treatment looks assigned by coin flip, check balance with SMDs and a Love plot, tame extreme weights, and fit marginal structural models — plus doubly robust estimators and a two-year time-varying example you can check by hand.

Matching and Propensity Score Matching

When you can’t randomize, rebuild a fair comparison: pair treated patients with similar controls, check balance with SMDs and a Love plot, analyze the matched pairs, and stress-test hidden bias — then do it all again with propensity scores. One diabetes example (metformin vs. an SGLT2 inhibitor) carries the whole playbook, with interactive charts and simulations.

Staggered Difference-in-Differences

CRISPR centers open in different regions in different months, so there is no single before and after. A four-region toy example shows the staggered fix: one clean DiD per wave - against a holdout or not-yet-treated regions - then pool them into one number.

No topics match that filter.