Algorithmcore
Propensity score matching
Also called PSM.
Pairs each treated unit with one or more control units of close propensity score and estimates the effect from the matched differences.
- Time
- Θ(m n + n log n) worst · best
- Space
- Θ(m n) extra
- Where
- m = the number of treated units; n = the number of control units, with m ≤ n
- Model
- Real RAM
- Properties
- deterministicoptimal total distanceuses each control once
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Paul R. Rosenbaum, Donald B. Rubin, 1985
Propensity score matching (PSM) estimates the effect of a treatment from observational data by pairing each treated unit with a control unit that has nearly the same propensity score . Units with equal propensity scores have the same distribution of the covariates , so the matched controls form a group that looks like the treated group on . The mean of the paired differences estimates the average effect on the treated (ATT). This page gives the optimal way to form the pairs on a one-dimensional score: sort both groups and run a dynamic program, which finds the pairs with the least total score distance. It is a special case of the assignment problem that needs no general matching algorithm.
In plain words
Each treated person gets a twin from the untreated group: someone whose chance of treatment, worked out from what we know about them, was about the same. If two people had the same chance, then whatever made one get treated and the other not was, as far as the measured facts go, a coin toss. Comparing the twins' outcomes and averaging gives the effect of the treatment on the kind of people who got it.
The common shortcut lets each treated person in turn take the closest twin still free. That can leave a later person with a poor twin. Sorting both lists by score and matching in order, with a small table to decide which controls to skip, gives the smallest total gap.
The problem
Identification. The estimand is the ATT, , in the notation of the potential outcomes framework. It needs SUTVA and consistency, ; ignorability for the control outcome, ; and overlap for the treated, with probability 1. By the propensity score theorem, ignorability given implies ignorability given , so
A control with the same score as a treated unit is a draw from the right conditional distribution. Ignorability cannot be checked from data; overlap can be checked by comparing the score distributions of the two groups.
Estimation. The input is treated units with scores and controls with scores . The scores are usually estimated, for example by logistic regression of on , and often put on the logit scale. A pair matching is a one-to-one map from the treated units to distinct controls. The matching problem is to find a that minimizes the total distance
The estimate is then .
The whole procedure has four steps: estimate the score; drop or flag units outside the overlap; match; check that the matched groups are balanced on every covariate, and if not, change the score model and match again. Only after balance is acceptable are the outcomes used.
The algorithm
OPTIMAL-PAIR-MATCH(s[1..m], c[1..n]) ▷ treated and control scores, m ≤ n- 1
sort s and c in increasing order, keeping the original indices - 2
D[0][j] ← 0 for j = 0..n; D[i][j] ← ∞ for 1 ≤ i ≤ m and j < i - 3
for i ← 1 to m do - 4
for j ← i to n do - 5
D[i][j] ← min(D[i][j - 1], D[i - 1][j - 1] + |s_i - c_j|) - 6
trace back from (m, n): if j > i and D[i][j - 1] = D[i][j], skip c_j and go to (i, j - 1); else pair s_i with c_j and go to (i - 1, j - 1) - 7
return D[m][n] and the pairs
is the least total distance for matching the smallest treated scores to distinct controls among the smallest control scores. Line L5 has two choices for the largest control : leave it unused, or pair it with , the largest treated score of the first . The proof shows that these two choices are enough, because some optimal matching never crosses: if , the control of is at most the control of . Line L6 follows the choices back to recover the pairs.
The common alternative is greedy or nearest available matching: take the treated units in some order (often by decreasing score) and give each the nearest control not yet used. It costs with a scan, but its total distance can be larger than the optimum. Matching with replacement lets every treated unit take its nearest control, even one already used; a binary search in the sorted controls finds it in time.
Example
Two treated units have scores 0.40 and 0.50, and three controls have scores 0.20, 0.48 and 0.62. The outcomes are 9 and 12 for the treated, and 3, 7 and 10 for the controls.
Both lists are already sorted. The table from lines L2 to L5 is:
| (0.20) | (0.48) | (0.62) | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | |
| (0.40) | 0.20 | 0.08 | 0.08 | |
| (0.50) | 0.22 | 0.20 |
For example, . The trace back pairs 0.50 with 0.62, then finds and pairs 0.40 with 0.48. The total distance is 0.20, and the estimate is .
Greedy matching in decreasing order of score gives 0.50 its nearest control 0.48 first. Then 0.40 is left with 0.20 (distance 0.20) and 0.62 (distance 0.22), and takes 0.20. The total distance is , and the estimate is . Matching with replacement gives both treated units the control 0.48, total distance , and the estimate .
The three rules give three different answers on the same data. The greedy rule used the poor pair (0.40, 0.20).
Correctness
The proof shows that OPTIMAL-PAIR-MATCH returns a matching of least total distance among all one-to-one matchings, and that the pairs it returns have that cost. The key step is an exchange argument: if two pairs cross, swapping their controls does not increase the cost, because is convex. The same proof works for any convex function of , such as the squared distance.
The proof is about the matching step only. That a matched estimate is close to the ATT is a statistical claim with extra conditions. The balancing property on the propensity score page proves that exact matches on the true score give the right control distribution. With approximate matches and estimated scores, the behaviour of the estimate is shown here only by simulation.
Proof: Sorted dynamic programming finds an optimal pair matching on one scorefull
After line L1, the treated scores are and the control scores are , with ; renaming the units does not change any cost. A matching is an injective map , and . A matching is monotone if .
Lemma 1 (convex exchange). Let be convex on the real line. If , and , then .
Proof. If , all four numbers are equal. Otherwise put . Then and . By convexity, and . Add the two.
Lemma 2 (uncrossing). If and are reals, then .
Proof. Put , , and . Then and , because and , and . Apply Lemma 1 with .
Lemma 3 (a monotone optimum exists). There is an optimal matching that is monotone.
Proof. There are finitely many matchings, so an optimal one exists. Among the optimal matchings, take one, , with the fewest inversions, pairs with . Suppose it has an inversion . Then and . Let be with the values at and swapped. By Lemma 2 with and , , so is also optimal. Swapping the two values of an inverted pair in a sequence lowers the number of inversions by at least one: the pair is no longer inverted, and for each strictly between and , the number of inversions among does not increase. This contradicts the choice of . So has no inversion, and since it is injective, it is strictly increasing.
Lemma 4 (the table). For and , let be the least cost of a monotone matching of into , with when (no injection exists) and . After lines L2 to L5, for all .
Proof. By induction on . Line L2 sets the cases and correctly, and lines L3 and L4 never write to them. Let . Line L5 runs after (the same row, previous column, or the value from line L2 when ) and (the previous row) are final, so by induction it sets . Take a monotone matching of the first treated into the first controls. If is unused, is a monotone matching into the first controls, so its cost is at least . If is used, then , since is the largest value of and is at most ; then restricted to is a monotone matching into the first controls, and the cost is at least . So is at least the minimum of the two. Conversely, both values are reached: an optimal matching for is one for that leaves unused, and an optimal matching for extended by is monotone. So .
Lemma 5 (the trace back). Line L6 returns a monotone matching of cost .
Proof. The trace back keeps the invariant that the pairs found so far have total cost , and that their treated indices are and their control indices are larger than and increasing in the treated index. At the start, and no pairs are found. If and , the step to keeps the invariant. Otherwise, if then , and if then ; in both cases line L5 took the second term, so , and adding the pair and moving to keeps the invariant. When the table value is finite, since holds throughout (the first move needs , the second lowers both). Each step lowers , and the loop stops at , where . Then the pairs cover every treated unit, use distinct controls, and cost .
Theorem 6 (optimality). OPTIMAL-PAIR-MATCH returns a matching with over all matchings , and returns that cost.
Proof. By Lemma 4, is the least cost over monotone matchings. Every monotone matching is a matching, and by Lemma 3 some optimal matching is monotone, so is the least cost over all matchings. By Lemma 5 the returned pairs reach it. Mapping the sorted positions back to the original indices does not change any distance.
The proof used only Lemma 1 for , so the same algorithm, with replaced by in line L5, is optimal for every convex .
Cost. Line L1 sorts in time. Line L5 runs times, which lies between and since , and each run takes constant time. Line L6 takes at most steps. So the time is , and the table uses space. All loops have finite ranges and the trace back lowers at each step, so the procedure terminates.
Complexity
Sorting takes time. Line L5 runs times, which is between and , so , each in constant time. The trace back takes at most steps. The total is in every case. The table needs space; if only the cost is needed, two rows suffice, .
In comparison, a general assignment problem with an arbitrary distance matrix, as needed for Mahalanobis distance on several covariates, takes time with the Hungarian algorithm or a minimum cost flow solver. The one-dimensional score lets the dynamic program do the same job faster. The reason is the uncrossing inequality of the proof: on sorted scores, the matrix of distances has the Monge property.
Properties
- Optimal for any convex distance. The same table gives the least total , the least total , or the least total of any convex function of the difference.
- Pairing does not change the mean estimate. For one-to-one matching without replacement, is the treated mean minus the mean of the chosen controls, so it depends only on which controls are chosen, not on who is paired with whom. The pairs matter for paired analyses, such as the signed rank test and Rosenbaum's sensitivity analysis, and for balance checks within pairs.
- Targets the ATT. Every treated unit is used and only some controls, so the estimate describes the treated group. To estimate the ATE, also match each control to treated units, or use inverse probability weighting.
- Balance in distribution, not exact. By the balancing property, units with exactly equal true scores have the same covariate distribution. Pairs with close scores can still differ a lot in ; balance holds only on average over many pairs.
Variants and improvements
- Calipers. Do not pair units whose scores differ by more than a caliper; unmatched treated units are dropped, which changes the estimand to the treated units with good matches. Austin (2011) recommends a caliper of 0.2 standard deviations of the logit of the score.
- Mahalanobis matching within calipers. Rosenbaum and Rubin (1985) match on the Mahalanobis distance of key covariates among the controls within a propensity caliper. This needs a general assignment or network flow solver.
- Matching with replacement and k nearest neighbours. Each treated unit takes its nearest controls, which may repeat, as in k-nearest neighbours. This lowers bias when good controls are scarce and raises variance when a few controls are used many times. Abadie and Imbens (2006) give its large sample theory and a bias correction.
- Optimal full matching and network flows. Rosenbaum (1989) formulated optimal matching as a minimum cost flow; Hansen and Klopfer (2006) extended it to full matching, where each matched set has one treated unit and several controls or one control and several treated units.
- Subclassification. Cut the score into five or more strata and compare within strata; this is the discrete form of matching and of weighting.
- Variance with an estimated score. Abadie and Imbens (2016) derive the large sample distribution of matching on an estimated score. For the ATE, ignoring the estimation of the score gives a conservative variance; for the ATT the correction can go either way.
When to use it
Use propensity score matching when there are many controls and fewer treated units, the target is the effect on the treated, and the analysis needs a matched sample that can be inspected and checked for balance, or analysed as pairs. Use the optimal algorithm here in place of greedy matching: on a single score it costs little more. When the estimand is the ATE, or when the controls are few, inverse probability weighting or a doubly robust method uses the data better. Always follow it with a balance check, and with a sensitivity analysis for unmeasured confounding.
Pitfalls
- Matching without replacement can leave bias. In a simulation with uniform on , , with , effect , and 500 repetitions (seed 2026), the naive difference of means was off from the sample ATT by 0.552 on average. Optimal pair matching on the true score cut the error to 0.073, greedy matching to 0.083, and matching with replacement to 0.001. Near there are about three treated units for every two controls, so pairs without replacement must reach down to controls with smaller scores. These numbers are measured, not proved.
- Good score matches are not good covariate matches. Two units with equal scores can have very different . King and Nielsen (2019) show that once the matched sample is nearly balanced, pruning further on the score can make covariate balance worse. Check balance on each covariate, for example with standardized mean differences, and not on the score alone.
- Checking balance with the outcome in view. Choosing the score model by looking at the estimated effect turns matching into a search for a result. Fix the matched sample before looking at the outcomes.
- Discarded units change the estimand. Calipers and trimming drop treated units without a match. The estimate then describes the matched treated units, not all treated units.
- The naive variance. Treating the pairs as a random sample of independent pairs ignores the estimation of the score and, with replacement, the reuse of controls. Abadie and Imbens (2008) show that the standard bootstrap is not valid for matching with replacement.
- Matching cannot fix unmeasured confounding. Like every method based on ignorability, PSM balances only the measured covariates.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/propensity-score-matching/. The authors are listed in prov/SWSA9A.jsonl.
"""Pair matching on a one-dimensional score, such as the propensity score or its logit.
optimal_pair_match finds m disjoint treated-control pairs with the least total
absolute score distance, by sorting and a dynamic program over the two sorted
lists. greedy_match is the common nearest-available heuristic, and
nearest_with_replacement lets controls be reused. att_from_pairs turns pairs
into the matching estimate of the effect on the treated. With int or Fraction
scores every distance and cost is exact.
"""
import bisect
from collections.abc import Sequence
def optimal_pair_match(s: Sequence, c: Sequence) -> tuple:
"""Minimum total |s_i - c_j| over all matchings of every treated unit to a distinct control.
s: m treated scores, c: n control scores, m <= n. Returns (cost, pairs), where
pairs is a list of (treated index, control index) in the input numbering,
sorted by treated index. Cost: Theta(m n + n log n) time and Theta(m n) space.
"""
m, n = len(s), len(c)
if m > n:
raise ValueError("pair matching needs at least as many controls as treated units")
ts = sorted(range(m), key=lambda i: (s[i], i)) # @line L1
cs = sorted(range(n), key=lambda j: (c[j], j))
inf = None # None stands for infinity
D = [[0] * (n + 1)] + [[inf] * (n + 1) for _ in range(m)] # @line L2
for i in range(1, m + 1): # @line L3
si = s[ts[i - 1]]
row, prev = D[i], D[i - 1]
for j in range(i, n + 1): # @line L4
take = prev[j - 1] + abs(si - c[cs[j - 1]])
skip = row[j - 1]
row[j] = take if skip is None or take < skip else skip # @line L5
pairs = []
i, j = m, n
while i > 0: # @line L6
if j > i and D[i][j - 1] is not None and D[i][j - 1] == D[i][j]:
j -= 1
else:
pairs.append((ts[i - 1], cs[j - 1]))
i, j = i - 1, j - 1
pairs.sort()
return D[m][n], pairs # @line L7
def greedy_match(s: Sequence, c: Sequence, order: Sequence | None = None, caliper=None) -> list:
"""Nearest available control for each treated unit in turn, without replacement.
order: the order in which treated units choose (default: decreasing score,
ties by index). A treated unit whose nearest available control is farther
than the caliper, or that finds no control left, stays unmatched. Ties in
distance go to the lower control index. Cost: O(m n).
"""
if order is None:
order = sorted(range(len(s)), key=lambda i: (-s[i], i))
free = set(range(len(c)))
pairs = []
for i in order:
if not free:
break
j = min(free, key=lambda k: (abs(s[i] - c[k]), k))
if caliper is not None and abs(s[i] - c[j]) > caliper:
continue
free.remove(j)
pairs.append((i, j))
pairs.sort()
return pairs
def nearest_with_replacement(s: Sequence, c: Sequence) -> list:
"""For each treated unit, the index of the nearest control (controls may repeat).
Ties go to the lower score, then to the lower index. Cost: O((m + n) log n).
"""
if not c:
raise ValueError("no controls")
cs = sorted(range(len(c)), key=lambda j: (c[j], j))
keys = [c[j] for j in cs]
out = []
for i, si in enumerate(s):
k = bisect.bisect_left(keys, si)
cand = [q for q in (k - 1, k) if 0 <= q < len(keys)]
q = min(cand, key=lambda q: (abs(si - keys[q]), keys[q], cs[q]))
out.append((i, cs[q]))
return out
def att_from_pairs(y_treated: Sequence, y_control: Sequence, pairs: Sequence) -> object:
"""The matching estimate of the ATT: the mean over pairs of y_treated - y_control."""
if not pairs:
raise ValueError("no pairs")
total = 0
for i, j in pairs:
total = total + (y_treated[i] - y_control[j])
return total / len(pairs)
def total_distance(s: Sequence, c: Sequence, pairs: Sequence) -> object:
"""Sum of |s_i - c_j| over the pairs."""
total = 0
for i, j in pairs:
total = total + abs(s[i] - c[j])
return total
test_propensity_score_matching.py 177 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/propensity-score-matching/. The authors are listed in prov/SWSA9A.jsonl.
import itertools
import random
from fractions import Fraction as Fr
import pytest
from propensity_score_matching import (
att_from_pairs,
greedy_match,
nearest_with_replacement,
optimal_pair_match,
total_distance,
)
# The worked example of the page: scores in hundredths.
EX_S = [Fr(40, 100), Fr(50, 100)] # treated
EX_C = [Fr(20, 100), Fr(48, 100), Fr(62, 100)] # controls
EX_YT = [9, 12]
EX_YC = [3, 7, 10]
def brute_force(s, c):
"""Oracle: the least total distance over every injection of treated units into controls."""
best = None
for perm in itertools.permutations(range(len(c)), len(s)):
cost = sum((abs(s[i] - c[j]) for i, j in enumerate(perm)), Fr(0))
if best is None or cost < best:
best = cost
return best
def is_valid(pairs, m, n):
treated = [i for i, _ in pairs]
controls = [j for _, j in pairs]
return sorted(treated) == list(range(m)) and len(set(controls)) == m and all(0 <= j < n for j in controls)
def test_worked_example():
cost, pairs = optimal_pair_match(EX_S, EX_C)
assert cost == Fr(20, 100)
assert pairs == [(0, 1), (1, 2)]
assert att_from_pairs(EX_YT, EX_YC, pairs) == 2
g = greedy_match(EX_S, EX_C) # 0.50 chooses first and takes 0.48
assert g == [(0, 0), (1, 1)]
assert total_distance(EX_S, EX_C, g) == Fr(22, 100)
assert att_from_pairs(EX_YT, EX_YC, g) == Fr(11, 2)
assert nearest_with_replacement(EX_S, EX_C) == [(0, 1), (1, 1)]
assert att_from_pairs(EX_YT, EX_YC, nearest_with_replacement(EX_S, EX_C)) == Fr(7, 2)
def test_dp_table_of_example():
"""The page lists D[i][j]; recompute it with the same recurrence by hand."""
s, c = sorted(EX_S), sorted(EX_C)
D = {(0, j): Fr(0) for j in range(4)}
for i in (1, 2):
for j in range(i, 4):
take = D[(i - 1, j - 1)] + abs(s[i - 1] - c[j - 1])
D[(i, j)] = take if j == i else min(take, D[(i, j - 1)])
assert [D[(1, j)] for j in (1, 2, 3)] == [Fr(20, 100), Fr(8, 100), Fr(8, 100)]
assert [D[(2, j)] for j in (2, 3)] == [Fr(22, 100), Fr(20, 100)]
def test_edge_cases():
assert optimal_pair_match([], []) == (0, [])
assert optimal_pair_match([], [Fr(1, 2)]) == (0, [])
assert optimal_pair_match([Fr(1, 3)], [Fr(1, 3)]) == (0, [(0, 0)])
with pytest.raises(ValueError):
optimal_pair_match([1, 2], [1])
with pytest.raises(ValueError):
nearest_with_replacement([1], [])
with pytest.raises(ValueError):
att_from_pairs([1], [1], [])
# all scores tied: every matching costs 0
cost, pairs = optimal_pair_match([Fr(1, 2)] * 3, [Fr(1, 2)] * 5)
assert cost == 0 and is_valid(pairs, 3, 5)
def test_optimal_against_brute_force():
rng = random.Random(20261114)
for trial in range(800):
m = rng.randint(1, 4)
n = rng.randint(m, 6)
grid = rng.choice([5, 10, 100]) # coarse grids make ties common
s = [Fr(rng.randint(0, grid), grid) for _ in range(m)]
c = [Fr(rng.randint(0, grid), grid) for _ in range(n)]
cost, pairs = optimal_pair_match(s, c)
assert is_valid(pairs, m, n), (s, c, pairs)
assert total_distance(s, c, pairs) == cost
assert cost == brute_force(s, c), (s, c)
def test_greedy_is_never_better_and_sometimes_worse():
rng = random.Random(3)
worse = 0
for _ in range(600):
m = rng.randint(1, 4)
n = rng.randint(m, 6)
s = [Fr(rng.randint(0, 100), 100) for _ in range(m)]
c = [Fr(rng.randint(0, 100), 100) for _ in range(n)]
order = list(range(m))
rng.shuffle(order)
g = greedy_match(s, c, order)
assert is_valid(g, m, n)
opt, _ = optimal_pair_match(s, c)
gc = total_distance(s, c, g)
assert gc >= opt
worse += gc > opt
assert worse > 0
def test_caliper_drops_far_units():
s = [Fr(1, 10), Fr(9, 10)]
c = [Fr(12, 100), Fr(5, 10)]
assert greedy_match(s, c, caliper=Fr(1, 10)) == [(0, 0)]
def test_with_replacement_against_brute_force():
rng = random.Random(11)
for _ in range(600):
m, n = rng.randint(1, 6), rng.randint(1, 6)
s = [Fr(rng.randint(0, 20), 20) for _ in range(m)]
c = [Fr(rng.randint(0, 20), 20) for _ in range(n)]
out = nearest_with_replacement(s, c)
assert [i for i, _ in out] == list(range(m))
for i, j in out:
assert abs(s[i] - c[j]) == min(abs(s[i] - v) for v in c)
# each treated distance is at most its distance in the optimal pair matching
if m <= n:
_, pairs = optimal_pair_match(s, c)
assert total_distance(s, c, out) <= total_distance(s, c, pairs)
def test_float_scores_agree_with_fractions():
rng = random.Random(8)
for _ in range(300):
m = rng.randint(1, 5)
n = rng.randint(m, 9)
s = [Fr(rng.randint(0, 1000), 1000) for _ in range(m)]
c = [Fr(rng.randint(0, 1000), 1000) for _ in range(n)]
cost, _ = optimal_pair_match(s, c)
fcost, fpairs = optimal_pair_match([float(v) for v in s], [float(v) for v in c])
assert abs(float(cost) - fcost) < 1e-9
assert abs(float(total_distance(s, c, fpairs)) - float(cost)) < 1e-9
def simulate(rng, n):
"""Superpopulation with known propensity; the effect is 1 + x, so the ATT exceeds the ATE."""
rows = []
for _ in range(n):
x = rng.random()
e = 0.1 + 0.5 * x
t = 1 if rng.random() < e else 0
y0 = 3 * x + rng.gauss(0, 0.5)
rows.append((e, t, y0 + (1 + x) * t, x))
return rows
def test_monte_carlo_matching_removes_most_bias():
rng = random.Random(2026)
r, n = 60, 300
naive = opt = 0.0
truth = 0.0
for _ in range(r):
rows = simulate(rng, n)
tr = [row for row in rows if row[1] == 1]
co = [row for row in rows if row[1] == 0]
s, c = [row[0] for row in tr], [row[0] for row in co]
_, pairs = optimal_pair_match(s, c)
opt += att_from_pairs([row[2] for row in tr], [row[2] for row in co], pairs)
naive += sum(row[2] for row in tr) / len(tr) - sum(row[2] for row in co) / len(co)
truth += sum(1 + row[3] for row in tr) / len(tr) # sample ATT
naive, opt, truth = naive / r, opt / r, truth / r
assert abs(naive - truth) > 0.5 # confounded: x raises both e and y0
assert abs(opt - truth) < 0.25 * abs(naive - truth)
History
Rosenbaum and Rubin (1983) defined the propensity score and proved that matching on it balances the covariates. In 1985 they compared nearest available matching on the score with Mahalanobis matching within score calipers and recommended the latter. Rosenbaum (1989) showed that optimal matching is a network flow problem and compared it with greedy matching. Abadie and Imbens (2006, 2016) gave the large sample theory of matching estimators, with and without an estimated score. Stuart (2010) reviews the methods and the balance checks.
References
- Paul R. Rosenbaum and Donald B. Rubin, The central role of the propensity score in observational studies for causal effects, Biometrika 70(1), 1983, pp. 41 to 55 (the balancing property and matching on the propensity score)
- Paul R. Rosenbaum and Donald B. Rubin, Constructing a control group using multivariate matched sampling methods that incorporate the propensity score, The American Statistician 39(1), 1985, pp. 33 to 38 (nearest available matching on the propensity score and Mahalanobis matching within calipers)
- Paul R. Rosenbaum, Optimal matching for observational studies, Journal of the American Statistical Association 84(408), 1989, pp. 1024 to 1032 (optimal pair matching as a minimum cost flow, compared with greedy matching)
- Alberto Abadie and Guido W. Imbens, Large sample properties of matching estimators for average treatment effects, Econometrica 74(1), 2006, pp. 235 to 267 (the bias of matching estimators and their variance)
- Alberto Abadie and Guido W. Imbens, On the failure of the bootstrap for matching estimators, Econometrica 76(6), 2008, pp. 1537 to 1557 (the standard bootstrap is not valid for nearest neighbour matching with replacement)
- Ben B. Hansen and Stephanie Olsen Klopfer, Optimal full matching and related designs via network flows, Journal of Computational and Graphical Statistics 15(3), 2006, pp. 609 to 627 (full matching as a minimum cost flow)
- Alberto Abadie and Guido W. Imbens, Matching on the estimated propensity score, Econometrica 84(2), 2016, pp. 781 to 807 (the large sample distribution with an estimated score and the variance adjustment)
- Peter C. Austin, Optimal caliper widths for propensity-score matching when estimating differences in means and differences in proportions in observational studies, Pharmaceutical Statistics 10(2), 2011, pp. 150 to 161 (a caliper of 0.2 standard deviations of the logit of the score)
- Elizabeth A. Stuart, Matching methods for causal inference, a review and a look forward, Statistical Science 25(1), 2010, pp. 1 to 21 (distance measures, matching methods and balance diagnostics)
- Gary King and Richard Nielsen, Why propensity scores should not be used for matching, Political Analysis 27(4), 2019, pp. 435 to 454 (the propensity score paradox)
- Paul R. Rosenbaum, Observational Studies, second edition, Springer, 2002, Chapter 10, pp. 295 to 331 (constructing matched sets and strata)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag SWSA9A Edit this page History Report an error Markdown