arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2608.20080v1 [stat.ME] 20 Aug 2026

Causal inference via propensity scores for case–control studies

Yan Liu    Anita Koushik Affiliation: Department of Oncology, McGill University, QC, Canada Affiliation: Centre de recherche de St. Mary, QC, Canada    Philippe Boileau Affiliation: Department of Epidemiology, Biostatistics and Occupational Health, McGill University,QC, Canada Affiliation: Research Institute of the McGill University Health Centre, QC, Canada    Cong Jiang Affiliation: Department of Epidemiology and Biostatistics, SUNY Downstate Health Sciences University, NY, United States    Miceline Mésidor Affiliation: Institut national de la recherche scientifique, Centre Armand-Frappier Santé Biotechnologie, QC, Canada    [2pt] Claudia Waddingham Affiliation: Centre de recherche de St. Mary, QC, Canada    Denis Talbot Affiliation: Département de médecine sociale et préventive, Université Laval, QC, Canada Affiliation: Centre de recherche du CHU de Québec – Université Laval, QC, Canada       Mireille E. Schnitzer Affiliation: Department of Epidemiology, Biostatistics and Occupational Health, McGill University,QC, Canada Affiliation: Département de médecine sociale et préventive, Université de Montréal, QC, Canada[6pt] Correspondence: Mireille E Schnitzer, Faculty of Pharmacy, Université de Montréal, Montréal, QC, H3C3J7, CanadaEmail: mireille.schnitzer@umontreal.ca    [12pt] Faculty of Pharmacy, Université de Montréal, QC, Canada
Abstract

Propensity score methods for causal inference are increasingly being used in cohort and experimental designs, but their development and uptake in outcome-dependent sampling schemes, such as case–control studies, remains limited. Case–control studies involve the sampling of individuals with and without an outcome of interest with the goal of estimating the effects of past exposures. When the design is observational, statistical adjustment for confounding bias is necessary. In case–control studies, propensity score models can be fit using control data under the assumption that the controls are representative of the source population with respect to their exposure distribution conditional on covariates (“control exchangeability”). In this paper, we first demonstrate that relative effects, such as causal risk ratios, are estimable under three different case–control design variants using control-fitted propensity scores. We appropriate two existing estimators for these designs: inverse probability of treatment weighting and an efficient and doubly robust estimator. We also introduce a novel two-step propensity score caliper-matching procedure for case–control designs. We introduce novel diagnostic tools to verify two necessary types of overlap. We then contrast our estimators using simulated data and apply them to examine the association between regular aspirin use and ovarian cancer risk.

Key words: Propensity scores, causal inference, case–control studies, inverse probability of treatment weighting, doubly robust estimation, overlap diagnostics

Introduction

Propensity score methods are now widely used in observational epidemiological studies to address confounding when randomization is not feasible. Since their formal introduction by Rosenbaum and Rubin, 20 propensity score methods have been developed for cohort and experimental designs through weighting, matching, stratification, adjustment, and doubly robust approaches. 20, 8, 3, 24 Application of propensity score methods aims to balance measured confounders across exposure groups and reduce bias in the estimation of causal effects under identification assumptions. However, outcome-dependent sampling inherent in case–control (CC) designs complicates estimation and application. 14, 17 Perhaps consequently, causal inference methods for CC data have had relatively limited development and uptake. 15 Despite this, CC studies are convenient and frequently employed in the context of rare outcomes and rapidly evolving settings where prospective studies may be infeasible or more expensive.

CC data are typically analyzed using multivariable logistic regression to adjust for confounding, but this approach is biased when the model is misspecified. While past work has demonstrated that nonparametric causal effect estimation is feasible in the CC setting when the outcome prevalence or sampling probabilities are known, 27, 17 these quantities are typically not available for the specific population under study. When selected controls are representative of the source population with respect to the exposure distribution conditional on measured covariates (“control exchangeability”), a condition that is notably satisfied under a rare outcome assumption, propensity scores can be consistently estimated using only the controls in CC settings even when the outcome prevalence or sampling probabilities are unknown. 16 The rare outcome assumption is typically applicable because the CC design is usually used in this context. 28 Under control exchangeability, propensity score models fit with control data can be incorporated into inverse probability of treatment weighting (IPTW) estimators. 14 Additionally, a semiparametric efficient doubly robust estimator 9 has been developed for the test-negative design (TND), a CC variant in which cases and controls are identified according to diagnostic test results among care-seeking individuals. 25

Propensity score matching is an alternative design-based method for causal inference. It is often viewed as a more intuitive approach, particularly for “non-technical audiences”, 21 but was not previously adapted to CC studies. In general, individual matching of cases to controls based on covariates in CC studies reduces estimation variance. But this kind of matching does not itself control for confounding bias, and may rather introduce selection bias. 12, 13

In this paper, we revisit past results 16, 14 for CC designs showing that propensity scores are identified using control data under a rare-disease assumption, allowing for the estimation of population relative effects, even when the prevalence of the outcome in the population or sampling probabilities are unknown. We introduce the more general notion of “control exchangeability” for general CC designs to clarify the specific condition under which propensity score estimation is possible. We then present a gamut of relative effect estimation procedures to facilitate the uptake of causal inference methodology in CC data analyses. We appropriate an existing IPTW estimator and a semiparametric-efficient and doubly robust estimator to the general CC setting. We introduce a novel two-stage propensity score matching approach that, unlike standard CC matching, can control for confounding bias, and four diagnostics to verify whether there is sufficient propensity score overlap between treated and untreated controls and between cases and controls, respectively. Finally, we apply this methodology to data from a CC study investigating the effect of regular aspirin use on the incidence of ovarian cancer.22

Methodology

We are interested in estimating the effect of a binary exposure or treatment AA on an outcome YY. We denote the multivariate set of measured confounders as 𝑪\boldsymbol{C}. We will consider two target parameters of interest: the marginal population risk ratio (mRR),

ψmRR:=𝔼[(Y=1A=1,𝑪)]𝔼[(Y=1A=0,𝑪)],\displaystyle\psi_{mRR}:=\frac{\mathbb{E}\left[\mathbb{P}(Y=1\mid A=1,\boldsymbol{C})\right]}{\mathbb{E}\left[\mathbb{P}(Y=1\mid A=0,\boldsymbol{C})\right]},

and the marginal risk ratio among the treated (mRRT),

ψmRRT:=𝔼[(Y=1A=1,𝑪)A=1]𝔼[(Y=1A=0,𝑪)A=1]=(Y=1A=1)𝔼[(Y=1A=0,𝑪)A=1].\displaystyle\psi_{mRRT}:=\frac{\mathbb{E}\left[\mathbb{P}(Y=1\mid A=1,\boldsymbol{C})\mid A=1\right]}{\mathbb{E}\left[\mathbb{P}(Y=1\mid A=0,\boldsymbol{C})\mid A=1\right]}=\frac{\mathbb{P}(Y=1\mid A=1)}{\mathbb{E}\left[\mathbb{P}(Y=1\mid A=0,\boldsymbol{C})\mid A=1\right]}. (1)

Under typical causal assumptions, these parameters can be interpreted causally. The latter parameter may be of most interest when all treated individuals (A=1A=1) have a non-zero probability of having been untreated (A=0A=0) but some untreated individuals have zero probability of being treated given the values of their confounders 𝑪\boldsymbol{C}.

Case–control design

CC studies separately recruit individuals with (Y=1Y=1) and without (Y=0Y=0) the study outcome. We define S1S_{1} to indicate eligibility for study inclusion as a case and S0S_{0} for eligibility as a control. Overall eligibility is denoted S=S0S1S=S_{0}\cup S_{1}. All cases are eligible, so that (S=1Y=1)=1\mathbb{P}(S=1\mid Y=1)=1 or Y=1S=1Y=1\Rightarrow S=1. Controls are eligible up to an investigator-specified sampling fraction (S=1Y=0)\mathbb{P}(S=1\mid Y=0) depending on the desired ratio of cases to controls. We define q=(S=1)q=\mathbb{P}(S=1) to be the overall probability of eligibility, a generally unknown quantity depending on the proportion of cases in the population as well as the investigator-specified sampling fraction. The complete data are defined as (𝑪,A,Y,S)(\boldsymbol{C},A,Y,S). We sample N1N_{1} i.i.d. draws from (𝑪,A,Y)𝕀(S1=1)(\boldsymbol{C},A,Y)\mathbb{I}(S_{1}=1), and N0N_{0} i.i.d. draws from (𝑪,A,Y)𝕀(S0=1)(\boldsymbol{C},A,Y)\mathbb{I}(S_{0}=1), defining N=N1+N0N=N_{1}+N_{0} with individual-specific data denoted (𝑪i,Ai,Yi),i=1,,N(\boldsymbol{C}_{i},A_{i},Y_{i}),i=1,...,N.

In the case of a rare outcome, we may assume that the controls are representative of the source population in terms of the conditional distribution of the exposure. That is, S0A|𝑪S_{0}\perp\!\!\!\perp A\mid\boldsymbol{C} approximately holds.16 In past work, we named this the “control exchangeability” assumption.9 The directed acyclic graph (DAG) in Figure 1 (A) represents the CC design. The rarity of Y=1Y=1 lets us ignore the link between case (Y=1Y=1) and control (Y=0Y=0) status (since controls are essentially the entire population) such that the independence between S0S_{0} and AA can be interpreted directly from the DAG. This assumption directly enables estimation of propensity scores through CC(A=aY=0,𝑪)=(A=aY=0,S=1,𝑪)=(A=aS0=1,𝑪)=(A=a𝑪)\mathbb{P}_{CC}(A=a\mid Y=0,\boldsymbol{C})=\mathbb{P}(A=a\mid Y=0,S=1,\boldsymbol{C})=\mathbb{P}(A=a\mid S_{0}=1,\boldsymbol{C})=\mathbb{P}(A=a\mid\boldsymbol{C}), where CC\mathbb{P}_{CC} represents the probability induced by CC sampling. Throughout the paper, we use \mathbb{P} and 𝔼\mathbb{E} with no subscript to represent probability and expectation in the source population.

Identifiability of relative effects with rare outcome CC data using an IPTW g-formula was discussed by Robins 16 and Mansson 14 and applied by Rose and van der Laan. 17, 19 They used the identifiability formula,

𝔼{(Y=1A=a,𝑪)}=q×𝔼CC{Y𝕀(A=a)/(A=a𝑪)}=q×𝔼CC{Y𝕀(A=a)/CC(A=aY=0,𝑪)},\mathbb{E}\{\mathbb{P}(Y=1\mid A=a,\boldsymbol{C})\}=q\times\mathbb{E}_{CC}\left\{Y\mathbb{I}(A=a)\middle/\mathbb{P}(A=a\mid\boldsymbol{C})\right\}=q\times\mathbb{E}_{CC}\left\{Y\mathbb{I}(A=a)\middle/\mathbb{P}_{CC}(A=a\mid Y=0,\boldsymbol{C})\right\}, (2)

assuming positivity s.t. 0<(A=a𝑪)<10<\mathbb{P}(A=a\mid\boldsymbol{C})<1 almost surely. We give our proof in Appendix A. When the target parameter is a contrast on the relative scale, such as ψmRR\psi_{mRR}, the constant qq cancels out and does not need to be estimated.

For the ψmRRT\psi_{mRRT} parameter of the risk ratio effect among the treated, the numerator is simply the probability of experiencing the outcome Y=1Y=1 in the treated population. It can be identified up to a constant in the CC sampling design through (Y=1A=1)=𝔼CC(YA)q1/CC(A=1)\mathbb{P}(Y=1\mid A=1)=\mathbb{E}_{CC}(YA)q_{1}/\mathbb{P}_{CC}(A=1) where q1=(S=1A=1)q_{1}=\mathbb{P}(S=1\mid A=1) is the probability of inclusion in the treated subpopulation. Similarly, under a weaker positivity condition, (A=1𝑪)<1\mathbb{P}(A=1\mid\boldsymbol{C})<1 almost surely, the denominator can be identified up to the same constant through the IPTW formula,

𝔼{(Y=1A=0,𝑪)A=1}=q1×𝔼CC{Y(1A)(A=1𝑪)/(A=0𝑪)A=1}.\mathbb{E}\{\mathbb{P}(Y=1\mid A=0,\boldsymbol{C})\mid A=1\}=q_{1}\times\mathbb{E}_{CC}\left\{Y(1-A)\mathbb{P}(A=1\mid\boldsymbol{C})\middle/\mathbb{P}(A=0\mid\boldsymbol{C})\mid A=1\right\}.

where, as before, the population propensity scores are equal to propensity scores conditional on the control condition and therefore estimable in the CC sample. The proof is given in Appendix B. Again, the constant q1q_{1} cancels out in the IPTW formula of ψmRRT\psi_{mRRT} and does not need to be estimated.

Case-control variants

Case–cohort designs are similar in that they sample all individuals with the outcome (Y=1Y=1) but sample controls from the general population (cohort) regardless of their outcome. Using the same notation as before, if the sampling of controls is either completely random or conditional on measured covariates, we once again satisfy the assumption that controls are independent of the exposure conditional on covariates, S0A|𝑪S_{0}\perp\!\!\!\perp A\mid\boldsymbol{C}. Thus, propensity scores are identified using the control data and the same IPTW formulas hold.

The TND, another CC variant, is discussed in Appendix C. Figure 1 (B) and (C) are DAGs representing assumed case–cohort and TND data-generating models, respectively.

AAY=1Y=1S1S_{1}Y=0Y=0S0S_{0}𝑪\boldsymbol{C}S=S1S0S=S_{1}\cup S_{0}(A)
AAY=1Y=1S1S_{1}S0S_{0}𝑪\boldsymbol{C}S=S1S0S=S_{1}\cup S_{0}(B)
AAW1W_{1}WWSSW0W_{0}𝑪\boldsymbol{C}S0=W0SS_{0}=W_{0}\cap S(C)
Figure 1: Directed acyclic graph (DAG) for the case-control design (A), the case-cohort design (B) and the TND (C). 9 Boxes indicate control for the variables. Double bar arrows indicate deterministic relationships. In designs (A) and (C), our DAG assumptions are not sufficient to imply control exchangeability, S0A|𝑪S_{0}\perp\!\!\!\perp A\mid\boldsymbol{C}.

Estimators

For estimation, a propensity score model is fit using only the control data; then this fit is used to predict propensity scores for all study participants. We will review IPTW for CC studies applied to estimate both ψmRR\psi_{mRR} and ψmRRT\psi_{mRRT}. We also review a semiparametric efficient and doubly robust (or double machine learning) estimator first proposed for the TND 9 but directly applicable to any of these three CC study designs; we apply this method to estimate ψmRR\psi_{mRR}. We then propose a novel propensity score matching procedure to estimate ψmRRT\psi_{mRRT}.

Inverse probability of treatment weighted estimation of ψmRR\psi_{mRR} and ψmRRT\psi_{mRRT}

IPTW involves the construction of weights that are used to reweight the sample outcomes in order to adjust for measured covariates. We use πN(𝑪i)\pi_{N}(\boldsymbol{C}_{i}) to denote the propensity score (Ai=1𝑪i)\mathbb{P}(A_{i}=1\mid\boldsymbol{C}_{i}) for each participant i=1,,Ni=1,...,N.

For the estimation of ψmRR\psi_{mRR}, the weights for the treated individuals may be defined as ωti=1/πN(𝑪i)\omega_{ti}=1/\pi_{N}(\boldsymbol{C}_{i}) and for the untreated as ωui=1/{1πN(𝑪i)}\omega_{ui}=1/\{1-\pi_{N}(\boldsymbol{C}_{i})\}. For the estimation of ψmRRT\psi_{mRRT}, the weights are redefined for the treated as ωti=1\omega_{ti}=1 and for the untreated as ωui=πN(𝑪i)/{1πN(𝑪i)}\omega_{ui}=\pi_{N}(\boldsymbol{C}_{i})/\{1-\pi_{N}(\boldsymbol{C}_{i})\}. The IPTW estimator of either parameter is then given as

i=1NYiAiωti/i=1NAii=1NYi(1Ai)ωui/i=1NAi=i=1NYiAiωtii=1NYi(1Ai)ωui.\frac{\left.\sum_{i=1}^{N}Y_{i}A_{i}\omega_{ti}\middle/\sum_{i=1}^{N}A_{i}\right.}{\left.\sum_{i=1}^{N}Y_{i}(1-A_{i})\omega_{ui}\middle/\sum_{i=1}^{N}A_{i}\right.}=\frac{\left.\sum_{i=1}^{N}Y_{i}A_{i}\omega_{ti}\right.}{\left.\sum_{i=1}^{N}Y_{i}(1-A_{i})\omega_{ui}\right.}.

We denote the estimators of respective quantities as ψ^mRRIPTW\hat{\psi}^{IPTW}_{mRR} and ψ^mRRTIPTW\hat{\psi}^{IPTW}_{mRRT}. We note that if there are some values of πN(𝑪i){\pi}_{N}(\boldsymbol{C}_{i}) close to 0 or 1, regularization or truncation may be necessary to avoid numerical instability attributable to divisions by near-zero values.

Doubly robust estimation of ψmRR\psi_{mRR}

Following,9 we note that the mRR can be equivalently written as ψ1/ψ0\psi_{1}/\psi_{0} where ψa:=𝔼[(Y=1A=a,𝑪=𝒄)]/q\psi_{a}:=\mathbb{E}\left[\mathbb{P}(Y=1\mid A=a,\boldsymbol{C}=\boldsymbol{c})\right]/q for a=(0,1)a=(0,1). A one-step efficient and doubly robust estimator of ψa\psi_{a}9 begins with estimators of πa(𝑪)=(A=a𝑪)\pi_{a}(\boldsymbol{C})=\mathbb{P}(A=a\mid\boldsymbol{C}) and μa(𝑪)=CC(Y=1A=a,𝑪)\mu_{a}(\boldsymbol{C})=\mathbb{P}_{CC}(Y=1\mid A=a,\boldsymbol{C}), denoted πaN(𝑪i)\pi_{aN}(\boldsymbol{C}_{i}) and μaN(𝑪i)\mu_{aN}(\boldsymbol{C}_{i}) respectively for each participant i=1,,Ni=1,...,N. We then define the one-step estimator of ψa\psi_{a} as

ψ^aOS=1Ni=1N𝕀(Yi=1,Ai=a)πaN(𝑪i)μaN(𝑪i)πaN(𝑪i)[1μaN(𝑪i)]𝕀(Yi=0)[𝕀(Ai=a)πaN(𝑪i)],for a=0,1.\displaystyle\hat{\psi}^{OS}_{a}=\frac{1}{N}\sum_{i=1}^{N}\frac{\mathbb{I}(Y_{i}=1,A_{i}=a)}{{\pi}_{aN}(\boldsymbol{C}_{i})}-\frac{{\mu}_{aN}(\boldsymbol{C}_{i})}{{\pi}_{aN}(\boldsymbol{C}_{i})[1-{\mu}_{aN}(\boldsymbol{C}_{i})]}\mathbb{I}\left(Y_{i}=0\right)\left[\mathbb{I}(A_{i}=a)-{\pi}_{aN}(\boldsymbol{C}_{i})\right],\quad\text{for }a=0,1. (3)

The mRR is then estimated as ψ^mRROS=ψ^1OS/ψ^0OS\hat{\psi}_{mRR}^{OS}=\hat{\psi}^{OS}_{1}/\hat{\psi}^{OS}_{0}. Cross-fitting can be used to lessen regularity assumptions of the estimators of πa\pi_{a} and μa\mu_{a}. Root-NN asymptotic normality of ψ^aOS\hat{\psi}_{a}^{OS} requires N1/4N^{-1/4} rates of convergence of the estimators of πa\pi_{a} and μa\mu_{a}, which implies that certain flexible machine learning methods can be used to estimate these quantities. 9 We note that if there are some values of πaN(𝑪i){\pi}_{aN}(\boldsymbol{C}_{i}) close to 0 or μaN(𝑪i){\mu}_{aN}(\boldsymbol{C}_{i}) close to 1, additional regularization or truncation may be necessary.

Propensity score matching for confounder control for estimation of ψmRRT\psi_{mRRT}

We propose a two-stage radius matching procedure with replacement to estimate ψmRRT\psi_{mRRT}, which is practical when there are a large number of candidate control participants relative to the treated participants. First, propensity scores are estimated by fitting a model on control participants and predicting scores for the entire sample. Matching is then performed on the logit propensity score, defining closeness between units ii and jj as the distance logit{πN(𝑪j)}logit{πN(𝑪i)}\mid\text{logit}\{\pi_{N}(\boldsymbol{C}_{j})\}-\text{logit}\{\pi_{N}(\boldsymbol{C}_{i})\}\mid. Both stages utilize radius matching, 7, 6, 5 where the first step is restricted to controls and the second matches controls to cases among the untreated individuals, including all available matches within a pre-defined radius (or “caliper”).

First stage: matching for covariate balance among the controls. We retain all treated controls (by defining the weight mi=1m_{i}=1) and match them with replacement to untreated controls within radius ρ1>0\rho_{1}>0. For untreated controls, mim_{i} is the sum of the fraction importance of each match to a treated observation (e.g., mi=1/3+1/4m_{i}=1/3+1/4 if matched to two treated controls that have 3 and 4 total matches, respectively). At this stage, one can assess the success of the matching in creating an untreated control group that has good covariate balance with respect to the treated control group. If an acceptable balance is not obtained, matching parameters such as radius and propensity score model can be modified.

Second stage: donor matching. We now consider the cases. Each treated case jj is retained (mj=1m_{j}=1). For each untreated case jj, we identify all untreated controls within a radius ρ2>0\rho_{2}>0 (with replacement) and “donate” the mean of their first-stage weights to case jj. So if we identify two untreated controls ii^{{}^{\prime}} and i′′i^{{}^{\prime\prime}} within radius ρ2\rho_{2} of case jj, we match both to untreated case jj, by setting mj=(mi+mi′′)/2m_{j}=(m_{i^{{}^{\prime}}}+m_{i^{{}^{\prime\prime}}})/2.

The matching estimator can then be defined as

ψ^mRRTPSM=j=1NYjAj/j=1NAjj=1NYj(1Aj)mj/j=1NAj\hat{\psi}^{PSM}_{mRRT}=\frac{\left.\sum_{j=1}^{N}Y_{j}A_{j}\middle/\sum_{j=1}^{N}A_{j}\right.}{\left.\sum_{j=1}^{N}Y_{j}(1-A_{j})m_{j}\middle/\sum_{j=1}^{N}A_{j}\right.} (4)

The proof of convergence of the matching estimator is given in Appendix D. The complete matching algorithm is given in Figure 2 and pseudocode in Table S1 in Appendix E.

Ideally, all treated controls and untreated cases are retained. But if in either stage a match cannot be obtained, the treated control or untreated case is removed, indicating a lack of overlap in the propensity scores between the comparison groups. While radii can be adjusted to limit these exclusions, our implementation in Figure 2 forces a nearest-neighbor match in the first stage even if no neighbors are within the radius.

Data O={(𝑪i,Ai,Yi),i=1,,N}O=\{(\boldsymbol{C}_{i},A_{i},Y_{i}),i=1,\cdots,N\}Fit a propensity score model for πi=(Ai=1|𝑪i)\pi_{i}=\mathbb{P}(A_{i}=1|\boldsymbol{C}_{i}) in controls (Yi=0Y_{i}=0)make predictions for all participants to obtain estimates π^i,fori=1,,N\hat{\pi}_{i},\text{for}~i=1,\cdots,N.SplitTreated controls, S1ctrlS_{1}^{ctrl}(i:Yi=0,Ai=1)(i:Y_{i}=0,A_{i}=1)Untreated controls, S0ctrlS_{0}^{ctrl}(i:Yi=0,Ai=0)(i:Y_{i}=0,A_{i}=0)Untreated cases, S0caseS_{0}^{case}(i:Yi=1,Ai=0)(i:Y_{i}=1,A_{i}=0)Treated cases, S1caseS_{1}^{case}(i:Yi=1,Ai=1)(i:Y_{i}=1,A_{i}=1)Compute SD{logit(π^i):i(S1ctrlS0ctrl)}SD\{logit(\hat{\pi}_{i}):i\in(S_{1}^{ctrl}\cup S_{0}^{ctrl})\},denote it by σ1\sigma_{1}, then define ρ1=d1×σ1\rho_{1}=d_{1}\times\sigma_{1}.Build distance matrix DctrlD^{ctrl} with entries|logit(π^j)logit(π^l)||\text{logit}(\hat{\pi}_{j})-\text{logit}(\hat{\pi}_{l})| for jS1ctrl,lS0ctrlj\in S_{1}^{ctrl},l\in S_{0}^{ctrl}.For each treated control jS1ctrlj\in S_{1}^{ctrl}, identifyall untreated controls within a radius of ρ1\rho_{1}to define the match set of indices LjL_{j}.Eligible match exists within ρ1\rho_{1}?YesDefine Lj=arg minl(Dj,lctrl)L_{j}=\text{arg~min}_{l}(D^{ctrl}_{j,l})for lS0ctrll\in S_{0}^{ctrl}NoDefine Lj={lS0ctrlL_{j}=\{l\in S_{0}^{ctrl} s.t.Dj,lctrlρ1}D^{ctrl}_{j,l}\leq\rho_{1}\}Compute the weight for each untreated control ml=jS1ctrl𝟙(lLj)/|Lj|m_{l}=\sum_{j\in S_{1}^{ctrl}}\mathbbm{1}_{(l\in L_{j})}/|L_{j}| First stageCompute SD{logit(π^i):i(S0caseS0ctrl)}SD\{logit(\hat{\pi}_{i}):i\in(S_{0}^{case}\cup S_{0}^{ctrl})\},denote it by σ2\sigma_{2}, then define ρ2=d2×σ2\rho_{2}=d_{2}\times\sigma_{2}.Build distance matrix DuntrtD^{untrt} with entries|logit(π^k)logit(π^l)||\text{logit}(\hat{\pi}_{k})-\text{logit}(\hat{\pi}_{l})| for kS0case,lS0ctrlk\in S_{0}^{case},l\in S_{0}^{ctrl}.For each untreated case kS0casek\in S_{0}^{case}, identifyall untreated controls within a radius of ρ2\rho_{2}to define the match set of indices LkL_{k}.Eligible match exists within ρ2\rho_{2}?NoDefine Lk=L_{k}=\varnothingYesDefine Lk={lS0ctrlL_{k}=\{l\in S_{0}^{ctrl} s.t.Dk,luntrtρ2}D^{untrt}_{k,l}\leq\rho_{2}\}mk=0m_{k}=0mk=1|Lk|Lkmm_{k}=\frac{1}{\lvert L_{k}\rvert}\sum_{\ell\in L_{k}}m_{\ell}Donor Second stageDefine mt=1m_{t}=1 for tS1caset\in S_{1}^{case}Compute the mRRT estimate, ψ^mRRTPSM=i=1NYiAi/i=1NYi(1Ai)mi\hat{\psi}_{mRRT}^{PSM}=\sum_{i=1}^{N}Y_{i}A_{i}/\sum_{i=1}^{N}Y_{i}(1-A_{i})m_{i}
Figure 2: Propensity score matching algorithm for estimating the marginal risk ratio among the treated (mRRT). The matching radii (ρ1,ρ2\rho_{1},\rho_{2}) are defined based on the prespecified radius multipliers d1d_{1} and d2d_{2}.

Inference

Bootstrap resampling to approximate the estimation variance is valid for the IPTW, one-step, and radius matching estimators under regularity assumptions of the estimation of the propensity score function. 17, 5, 1 For CC and case–cohort, resampling is done separately in the cases and controls while for the TND, resampling is done in the full dataset. We use these approaches in the simulation study and application.

Diagnostic procedures

We propose two steps of CC diagnostic procedures, for the estimation of ψmRR\psi_{mRR} and ψmRRT\psi_{mRRT}. We recommend these procedures for both matching and algorithms using inverse weighting (like IPTW and the one-step estimator).

For both the ψmRR\psi_{mRR} and ψmRRT\psi_{mRRT}, after constructing the weights (either with matching or directly), the first step is to check propensity score overlap and covariate balance between the weighted treated controls and the weighted untreated controls. This step is akin to the standard overlap and balance-checking step in a prospective cohort study since the controls reflect the source population. Propensity score overlap can be visualized using histograms (e.g., top row of Figure 3), while standardized mean differences (SMDs) 2 can evaluate the similarity in the central tendency of the weighted covariate distributions between treatment groups in the controls; see top half of Table 1.

The second step verifies propensity score overlap between untreated cases and untreated controls (see bottom left of Figure 3). When estimating ψmRR\psi_{mRR}, overlap should also be compared between treated cases and treated controls (Section G.3 in Appendix), as non-overlap indicates that we are extrapolating when predicting values for the cases. For matching, we also recommend verifying post-weighting propensity score overlap between untreated cases and untreated “donor” controls, where the untreated controls are weighted corresponding to the sum of their donor fractions (see bottom right of Figure 3). Covariate balance should be assessed by contrasting each untreated case with its donor set, using the mean difference between the case’s covariate value and the donor set mean for each covariate (Table 1). The complete covariate balance checking algorithms for IPTW and matching are presented in Tables S2 and S3 in Appendix F, respectively.

Simulations

We use simulated CC data to contrast the matching estimator and IPTW for the estimation of ψmRRT\psi_{mRRT} and the one-step estimator, IPTW, and logistic regression for the estimation of ψmRR\psi_{mRR}. We further tested our procedures with simulated TND data (procedures and results are given in Appendix G).

Data simulation

We repeatedly generated a source population of N=2×106N=2\times 10^{6} individuals with an overall disease prevalence of approximately 1%, from which CC data were sampled. Two continuous covariates (C1C_{1} and C2C_{2}) were generated from a bivariate normal distribution and affected both exposure (AA) and disease (YY). The outcome YY was generated from a logistic model including C1C_{1}, C2C_{2}, AA, and an interaction between AA and C1C_{1} to induce effect modification. In scenario (a), the probability of exposure was set to zero when C1<1C_{1}<-1 to induce partial non-overlap and reflect a one-sided violation of the positivity assumption. Thus, ψmRRT\psi_{mRRT} represents an appropriate target parameter and ψmRR\psi_{mRR} is undefined. Scenario (b) removed this restriction so that ψmRR\psi_{mRR} is defined, whereas scenario (c) used a non-linear treatment model. In all scenarios, the analytic CC dataset was formed by randomly sampling 1,000 cases (Y=1Y=1) and 4,000 controls (Y=0Y=0). Appendix G provides the full data-generating mechanisms and scenario (c) results.

Diagnostic checking and matching radius selection

We present the results of the proposed diagnostic checks for the mRRT using a single simulated dataset. Table 1 presents the covariate balance before and after applying IPTW or matching. Matching radii were defined as ρa=da×σa\rho_{a}=d_{a}\times\sigma_{a} for stage a=1,2a=1,2, where σa\sigma_{a} is the standard deviation of the logit of the propensity scores in the relevant subset (see Figure 2). Four radius values were considered: d1={0.05,0.03,0.01,0.005}d_{1}=\{0.05,0.03,0.01,0.005\} and d2={0.05,0.03,0.02,0.01}d_{2}=\{0.05,0.03,0.02,0.01\}. In stage one, the treated and untreated controls initially exhibited substantial imbalance, with SMDs exceeding 0.7. Applying IPTW reduced the SMDs to below 0.01. For matching, covariate balance improved markedly as d1d_{1} decreased, with SMD also falling below 0.01. A similar pattern was observed in stage two as d2d_{2} decreased. We therefore selected d1=d2=0.01d_{1}=d_{2}=0.01, which achieved a good balance. Figure 3 illustrates the pre- and post-weighting propensity score overlap. The distribution of treated and untreated controls initially showed non-overlap of untreated with propensity scores near zero, but this is not a violation when estimating the mRRT. After weighting or matching, the histograms overlapped almost perfectly. In stage two (bottom row), pre-matching overlap between untreated cases and controls suggested that the propensity score model did not substantially extrapolate, and matching produced excellent alignment.

Figure 3: Diagnostic checks of the propensity score overlap for mRRT weighting in a simulation (a) for a case-control study: comparison between the treated controls and untreated controls before weighting (A) and after weighting for matching with d1=d2=0.01d_{1}=d_{2}=0.01 (B) and IPTW (C), and between untreated controls and untreated cases before (D) and after matching (E).
Table 1: Diagnostic checks of covariate balance for the mRRT in case-control simulation (a): comparison between the treated controls and untreated controls before and after weighting for IPTW and matching, and between untreated cases and untreated controls before and after matching across matching radii. Variables are summarized as mean and standard deviation (mean (SD)); SMD: standardized mean difference.
First stage: balance between treated and untreated controls
d1d_{1} Variable (A=0,Y=0)(A=0,Y=0) (A=1,Y=0)(A=1,Y=0) SMD
Before weighting Size 2885 1115
C1C_{1} -0.210 (0.994) 0.476 (0.785) 0.767
C2C_{2} -0.193 (0.974) 0.520 (0.950) 0.741
IPTW C1C_{1} 0.470 (0.807) 0.476 (0.784) 0.007
C2C_{2} 0.519 (0.960) 0.520 (0.950) 0.002
Matching 0.05 Size 2252 1115
C1C_{1} 0.449 (0.795) 0.476 (0.784) 0.034
C2C_{2} 0.483 (0.944) 0.520 (0.950) 0.039
0.03 Size 2247 1115
C1C_{1} 0.462 (0.799) 0.476 (0.784) 0.018
C2C_{2} 0.508 (0.959) 0.520 (0.950) 0.013
0.01 Size 2225 1115
C1C_{1} 0.465 (0.801) 0.476 (0.784) 0.014
C2C_{2} 0.523 (0.966) 0.520 (0.950) 0.003
0.005 Size 2210 1115
C1C_{1} 0.464 (0.799) 0.476 (0.784) 0.015
C2C_{2} 0.525 (0.969) 0.520 (0.950) 0.005
Second stage: balance of donor matching (independent of d1d_{1}) between untreated cases and controls
d2d_{2} Variable (A=0,Y=0)(A=0,Y=0) (A=0,Y=1)(A=0,Y=1) SMD
Before weighting Size 2885 536
C1C_{1} -0.210 (0.994) 0.324 (0.954) 0.549
C2C_{2} -0.193 (0.974) 0.416 (0.897) 0.651
Matching 0.05 Size 2841 535
C1C_{1} 0.260 (0.903) 0.321 (0.951) 0.065
C2C_{2} 0.391 (0.894) 0.411 (0.887) 0.022
0.03 Size 2819 535
C1C_{1} 0.280 (0.917) 0.321 (0.951) 0.043
C2C_{2} 0.412 (0.896) 0.411 (0.887) 0.002
0.02 Size 2793 534
C1C_{1} 0.286 (0.922) 0.318 (0.949) 0.034
C2C_{2} 0.414 (0.888) 0.405 (0.880) 0.010
0.01 Size 2685 534
C1C_{1} 0.289 (0.923) 0.318 (0.949) 0.030
C2C_{2} 0.419 (0.890) 0.405 (0.880) 0.015

Results

Table 2 summarizes the performance of the IPTW, one-step, and matching estimators for estimating the mRRT and mRR on 500 replications. In scenario (a), when targeting the mRRT (true value 0.93), the IPTW performed well with negligible bias and close agreement between MC and BS standard errors, yielding a coverage rate of 95.6%. The matching estimator was sensitive to the radius: larger values, especially d1=d2=0.05d_{1}=d_{2}=0.05, produced noticeable bias and lower coverage, reaching 82%, whereas smaller radii improved both. For d1(0.005,0.01)d_{1}\in(0.005,0.01) and d2(0.01,0.02,0.03)d_{2}\in(0.01,0.02,0.03), the bias was below 0.02 and the coverage rates remained high, typically between 95.8% and 98%.

Scenario (b) evaluated the estimation of the mRR (true value 0.77). IPTW and one-step estimators performed well, producing estimates close to the true value and coverage rates near the nominal level (93.6% and 94.6%, respectively). In contrast, the logistic regression estimator showed higher bias (0.063) and lower coverage (80.6%). In scenario (c), incorporating machine learning substantially improved performance relative to the parametric regression models, reducing bias and increasing coverage (Table S7 in Appendix G.4). This highlighted the benefits of flexible nuisance function estimation, though it may introduce more variance. An empirical demonstration of the double robustness of the one-step estimator is presented in Table S9 in Appendix G.4.

Table 2: Estimation summaries of IPTW, one-step (OS), and propensity score matching (with four different two-stage matching radius multipliers) for both mRRT and mRR in case-control simulations (a) and (b). Bias, Monte Carlo standard errors (MC SE), mean bootstrap-estimated standard errors (BS SE), and coverage rates.
Method d1d_{1} d2d_{2} ψ^\hat{\psi} Bias MC SE BS SE Coverage Rate (%)
Simulation (a): Estimation of mRRT (true value: 0.933)
IPTW 0.933 0.000 0.094 0.092 95.60
Matching 0.05 0.05 1.031 0.098 0.102 0.100 82.00
0.03 1.004 0.071 0.102 0.101 90.60
0.02 1.002 0.069 0.100 0.101 90.40
0.01 1.013 0.079 0.099 0.101 87.60
0.03 0.05 1.002 0.069 0.103 0.102 90.20
0.03 0.971 0.038 0.103 0.104 94.20
0.02 0.967 0.034 0.101 0.104 95.80
0.01 0.979 0.046 0.099 0.104 95.00
0.01 0.05 0.987 0.054 0.103 0.103 93.00
0.03 0.952 0.019 0.104 0.106 96.20
0.02 0.943 0.010 0.102 0.108 96.00
0.01 0.944 0.011 0.100 0.109 98.00
0.005 0.05 0.986 0.053 0.103 0.103 93.40
0.03 0.950 0.017 0.104 0.106 96.20
0.02 0.940 0.007 0.102 0.108 95.80
0.01 0.937 0.004 0.100 0.110 97.60
Simulation (b): Estimation of conditional RR/mRR (true value: 0.770)
Logistic 0.708 0.063 0.060 0.059 80.60
IPTW 0.777 0.006 0.066 0.066 93.60
OS 0.786 0.015 0.073 0.078 94.60

Application

To demonstrate the application of this methodology using real CC study data, we utilized data from the PRevention of OVarian cancer in Quebec (PROVAQ) study to estimate the effect of regular aspirin use on ovarian cancer risk. PROVAQ is a population-based CC study conducted in Montreal, Canada from 2011 to 2016.10 This study recruited female Canadian citizens aged 18–79 years who spoke French or English and resided in the Greater Montreal area. A total of 498 incident ovarian cancer cases (borderline and invasive) were recruited from seven hospitals (78% participation rate), and 908 controls were randomly selected from the Quebec List of Electors (56% participation). Controls were frequency-matched to cases by 5-year age strata and region. In examining a short survey given to non-participants, it was noted that participation among both cases and controls was associated with age and educational attainment. Participants reported information on sociodemographic characteristics, lifestyle, reproductive history, and medical history, including lifetime aspirin use.22 Regular aspirin use was defined as use of at least one tablet per week for at least six consecutive months. Overall, 15.3% of participants reported regular aspirin use (13.7% among cases and 16.2% among controls). Descriptive characteristics of the study population by case status are presented in Table S10 in Appendix H.1.

We implemented IPTW and propensity score matching for the estimation of the mRRT, while logistic regression, IPTW and the one-step doubly robust method were used for the mRR. The control-fitted propensity score model included age, education, the interaction between them, body mass index, history of endometriosis, history of menopausal hormone therapy, duration of oral contraceptive use, pack years of smoking, alcohol consumption, and regular use of other non-opioid analgesics. For matching, the radii were defined as 0.2 times the standard deviation of the logit-transformed propensity scores among controls in stage one and among non-regular aspirin users in stage two after the evaluation of different radius multipliers (see Table S12 in Appendix H). Under this specification, all cases who did not regularly use aspirin were successfully matched during the second stage, and among the options explored, this provided the best overall balance. Thus, the post-matching sample size was equal to the original. To reduce potential model misspecification, we also estimated the nuisance functions (propensity score and outcome probabilities) for IPTW and the one-step estimator using Super Learner (SL), 26 with random forest (SL.randomForest), generalized linear models (SL.glm), generalized additive models (SL.gam), and LASSO (SL.glmnet). When using SL, the estimated treatment and outcome probabilities were truncated at [0.001, 0.999] and [0.05, 0.95].

Diagnostic results of the propensity score overlap are presented in Figures S5-S7 in Appendix H.2. After weighting or matching, the distributions of propensity scores of treated and untreated controls were harmonized. The covariate SMDs (Table S11) were generally reduced after adjustment, with matching achieving overall balance for the mRRT. For the mRR, IPTW with the parametric method also improved balance, whereas SL-based IPTW led to less consistent balance. Second stage matching between untreated cases and untreated controls did not meaningfully improve balance, as the post-matching SMD seemed to be similar to the unweighted values and remained unbalanced for several covariates.

Table 3 presents the estimated mRRT and mRR. All mRRT estimates suggested effect sizes of 0.75-0.78 with matching and IPTW with SL producing bootstrap confidence intervals that exclude the null. For the mRR, point estimates varied between methods relying on parametric models vs. SL. Logistic regression, IPTW, and the one-step method using generalized linear models gave comparable point estimates around 0.77-0.78, though IPTW and one-step had higher standard errors. However, when SL was used in IPTW and the one-step method, the point estimates decreased. For the one-step estimator, the usage of SL led to greatly increased standard errors. This was due to values of the propensity score πaN\pi_{aN} and of 1μaN1-\mu_{aN} close to zero, leading to large weights. Truncation of these probabilities controlled the standard error and resulted in point estimates of roughly 0.71-0.72 for both IPTW and one-step estimators with SL, though only the IPTW confidence intervals excluded the null.

Table 3: Estimated mRR and mRRT in the PROVAQ study. BS SE: Mean bootstrap-estimated standard error.
Method Estimate BS SE 95% CI
Analysis (a): Estimation of mRRT
IPTW 0.753 0.134 [0.474, 1.007]
IPTW_SL0.001 0.777 0.125 [0.469, 0.942]
Matching 0.758 0.137 [0.460, 0.990]
Analysis (b): Estimation of conditional RR/mRR
Logistic 0.765 0.172 [0.544, 1.067]
IPTW 0.771 0.289 [0.550, 1.627]
IPTW_SL0.001 0.716 0.125 [0.467, 0.942]
IPTW_SL0.05 0.714 0.116 [0.460, 0.897]
OS 0.781 0.315 [0.506, 1.634]
OS_SL0.001 0.674 0.617 [0.082, 2.782]
OS_SL0.05 0.718 0.202 [0.597, 1.404]
Notes: IPTW_SL and OS_SL denote estimators in which nuisance functions were estimated using machine learning via Super Learner (SL.glm, SL.gam, SL.glmnet, SL.randomForest), where the subscripts 0.001{0.001} and 0.05{0.05} indicate the truncation intervals [0.001, 0.999] and [0.05, 0.95], respectively.

Discussion

Logistic regression of the outcome on covariates and exposure is the standard approach in CC analysis. The rare outcome assumption that we make also implies that the usual adjusted logistic regression of the outcome approximately estimates risk ratios. However, logistic regression can only estimate populational effects when omitting interaction terms between exposure and any covariate; this omission may result in model misspecification, potentially biasing the resulting estimation.23 Propensity score methods may be beneficial in that they are agnostic to outcome model specification and thus to treatment effect heterogeneity. While the doubly robust estimator requires estimation of the conditional expectation of the outcome in the sample, the double robustness property also allows for nice asymptotic properties while using machine learning, which avoids bias due to model misspecification.9

One limitation of the doubly robust estimator was increased variance in the presence of estimated conditional sample probabilities of the outcome close to one (μaN(𝑪)1\mu_{aN}(\boldsymbol{C})\approx 1). This did not impact the IPTW estimator, which had lower variance both in the simulation study and application. We note that this variance inflation issue due to μaN(𝑪)1\mu_{aN}(\boldsymbol{C})\approx 1 is specific to the CC sampling framework and is not a limitation of doubly robust methods in prospective designs.

We broadly recommend applying our propensity score overlap and covariate balance metrics when conducting CC analyses with propensity scores. Note that these differ from the standard diagnostics used for prospective designs.

Our application dataset used incidence density sampling, where controls are sampled among individuals at risk at the time a case occurs, and sampled conditional on their covariates in order to replicate the distribution observed in cases. While we did not explicitly investigate incidence density sampling theoretically or in the simulation study, we note that it satisfies the requirement that controls are selected independently of treatment conditional on covariates. Thus, we believe that our methods apply directly to this context.

Past work has demonstrated that CC designs that match controls to cases can reduce estimation variance. 18 Our convergence proof for the proposed two-step propensity score matching estimator suggests that the matching estimator implicitly constructs weights approximating treatment-odds weighting within propensity score neighborhoods, while the matching radius serves as a tuning parameter that may improve finite-sample stability. Future work could explore alternative balancing-weight implementations for the mRRT, develop doubly robust and targeted estimators for the mRRT, integrate matched CC designs into our framework and extend the methodology to multilevel categorical exposures.

Conflicts of interest

The authors declare no potential conflict of interests.

Funding

This work was supported by an NSERC Discovery Grant. AK holds the McGill University Chair in Community Cancer Care at St. Mary’s. DT is supported by a research career award from the Fonds de recherche du Québec – Santé (https://doi.org/10.69777/379793, https://doi.org/10.69777/312198). MES holds a tier 2 Canada Research Chair in Machine Learning and Causal Inference.

Data availability statement

R code used to generate the simulated data and conduct the simulation studies will be made available on GitHub (to be uploaded) upon publication. The data used in the applied analysis are not publicly available because of privacy, ethical, and data-use restrictions. Access to these data may be requested from anita.koushik@mcgill.ca, and can be shared contingent on reasonable request and institutional approval.

References

Appendix for “Causal Inference via Propensity Scores for Case-control Studies”

by Yan Liu, Anita Koushik, Philippe Boileau, Cong Jiang, Miceline Mésidor, Claudia Waddingham,

Denis Talbot, and Mireille E. Schnitzer

Appendix A Proof of inverse probability weighted identifiability for effects in the complete population

For any of the three case-control (CC) designs, we assume that if Y=1Y=1 then S=1S=1, that is, the presence of the outcome implies that the individual is eligible for study inclusion. We also assume that CC(A=aY=0,𝑪)=(A=a𝑪)\mathbb{P}_{CC}(A=a\mid Y=0,\boldsymbol{C})=\mathbb{P}(A=a\mid\boldsymbol{C}). Then we can identify the following up to the constant q=(S=1)q=\mathbb{P}(S=1):

𝔼CC{Y𝕀(A=a)q/(A=a𝑪)},\displaystyle\mathbb{E}_{CC}\left\{Y\mathbb{I}(A=a)q\middle/\mathbb{P}(A=a\mid\boldsymbol{C})\right\},
=𝔼CC{Y𝕀(A=a)/(A=a𝑪)}(S=1),\displaystyle=\mathbb{E}_{CC}\left\{Y\mathbb{I}(A=a)\middle/\mathbb{P}(A=a\mid\boldsymbol{C})\right\}\mathbb{P}(S=1),
=𝔼{Y𝕀(A=a)/(A=a𝑪)S=1}(S=1),\displaystyle=\mathbb{E}\left\{Y\mathbb{I}(A=a)\middle/\mathbb{P}(A=a\mid\boldsymbol{C})\mid S=1\right\}\mathbb{P}(S=1),
=𝔼{YS𝕀(A=a)/(A=a𝑪)},\displaystyle=\mathbb{E}\left\{YS\mathbb{I}(A=a)\middle/\mathbb{P}(A=a\mid\boldsymbol{C})\right\},
=𝔼{Y𝕀(A=a)/(A=a𝑪)}, which is the usual IPTW g-formula for the treatment-specific mean outcome;\displaystyle=\mathbb{E}\left\{Y\mathbb{I}(A=a)\middle/\mathbb{P}(A=a\mid\boldsymbol{C})\right\},\text{ which is the usual IPTW g-formula for the treatment-specific mean outcome;}
=𝔼{(Y=1A=a,𝑪)}.\displaystyle=\mathbb{E}\{\mathbb{P}(Y=1\mid A=a,\boldsymbol{C})\}.

Appendix B Proof of inverse probability weighted identifiability for effects in the treated population

This proof is identical to the previous except involves constant q1=(S=1A=1)q_{1}=\mathbb{P}(S=1\mid A=1). The following is identifiable up to q1q_{1} under the assumption that the propensity scores can be estimated using control data.

𝔼CC{Y(1A)q1(A=1𝑪)/(A=0𝑪)A=1},\displaystyle\mathbb{E}_{CC}\left\{Y(1-A)q_{1}\mathbb{P}(A=1\mid\boldsymbol{C})\middle/\mathbb{P}(A=0\mid\boldsymbol{C})\mid A=1\right\},
=𝔼CC{Y(1A)(A=1𝑪)/(A=0𝑪)A=1}(S=1A=1),\displaystyle=\mathbb{E}_{CC}\left\{Y(1-A)\mathbb{P}(A=1\mid\boldsymbol{C})\middle/\mathbb{P}(A=0\mid\boldsymbol{C})\mid A=1\right\}\mathbb{P}(S=1\mid A=1),
=𝔼{Y(1A)(A=1𝑪)/(A=0𝑪)A=1,S=1}(S=1A=1),\displaystyle=\mathbb{E}\left\{Y(1-A)\mathbb{P}(A=1\mid\boldsymbol{C})\middle/\mathbb{P}(A=0\mid\boldsymbol{C})\mid A=1,S=1\right\}\mathbb{P}(S=1\mid A=1),
=𝔼{YS(1A)(A=1𝑪)/(A=0𝑪)A=1},\displaystyle=\mathbb{E}\left\{YS(1-A)\mathbb{P}(A=1\mid\boldsymbol{C})\middle/\mathbb{P}(A=0\mid\boldsymbol{C})\mid A=1\right\},
=𝔼{Y(1A)(A=1𝑪)/(A=0𝑪)A=1}, the usual IPTW formula for the average treatment effect in the treated;\displaystyle=\mathbb{E}\left\{Y(1-A)\mathbb{P}(A=1\mid\boldsymbol{C})\middle/\mathbb{P}(A=0\mid\boldsymbol{C})\mid A=1\right\},\text{ the usual IPTW formula for the average treatment effect in the treated;}
=𝔼{(Y=1A=0,𝑪)A=1}.\displaystyle=\mathbb{E}\{\mathbb{P}(Y=1\mid A=0,\boldsymbol{C})\mid A=1\}.

Appendix C Test-negative design

The TND specifically aims to estimate vaccine effectiveness against an infectious disease. Such a study recruits patients seeking care for symptoms that resemble the disease of interest (target disease) who then undergo testing to confirm whether they are infected with the target disease. To define a control group, the TND requires that symptoms resembling those of the target disease may also arise due to some other pathogen. We denote W1W_{1} as the presence of symptoms due to the target pathogen and W0W_{0} as symptoms due to another pathogen. Neither W1W_{1} nor W0W_{0} are known at the time of recruitment. Thus, we use WW to indicate the presence of target-disease-like symptoms due to either infection, i.e. W=max{W1,W0}W=\max\{W_{1},W_{0}\}, which is observed. We define SS as care-seeking for symptoms (so that S=1S=1 also implies the presence of symptoms W=1W=1) which represents the primary inclusion criteria of the TND. The outcome of interest, care-seeking for the target disease, is given as Y=𝕀(W1=1,S=1)Y=\mathbb{I}(W_{1}=1,S=1). We again define q=(S=1)q=\mathbb{P}(S=1) to be the probability or prevalence of the inclusion criterion. Thus, while the complete data are defined as (𝑪,A,W1,W0,S)(\boldsymbol{C},A,W_{1},W_{0},S), we observe only NN i.i.d. draws from (𝑪,A,Y)𝕀(S=1)(\boldsymbol{C},A,Y)\mathbb{I}(S=1), that is, only confounders, vaccination status, and case (Y=1Y=1) or control (Y=0Y=0) status in the TND sample.

The absence of co-infections (W1=1W_{1}=1 and W0=1W_{0}=1 simultaneously) in addition to our DAG implies control exchangeability.9 We have shown previously 23 that under this DAG, control exchangeability, and positivity s.t., 0<(A=a𝑪)<10<\mathbb{P}(A=a\mid\boldsymbol{C})<1 almost surely, the marginal risk ratio ψmRR\psi_{mRR} can be identified through the same IPTW formula as in Equation (2) in manuscript.

Appendix D Proof of convergence of the matching estimator

This proof applies to a CC where the ratio of controls to cases is held constant as sample size increases or to a test-negative design (TND) (where this ratio is not controlled by the design). We assume control exchangeability or rare outcome and a weaker positivity condition that P(A=1𝑪)<1P(A=1\mid\boldsymbol{C})<1 almost surely. To arrive at a causal parameter which is the analogue of the mRR, we additionally assume consistency (A=aY=Y(a)A=a\Rightarrow Y=Y^{(a)} for a=(0,1)a=(0,1)) and one-sided conditional exchangeability Y(0)A|𝑪Y^{(0)}\perp A\mid\boldsymbol{C}.

Theorem 1

As NN\rightarrow\infty, ψ^mRRTTNDψmRRT\hat{\psi}_{mRRT}\rightarrow_{\mathbb{P}_{TND}}\psi_{mRRT}.

Proof 1

In the numerator of ψ^mRRT\hat{\psi}_{mRRT}, we have that

i=1Naiyi/i=1NaiCC\displaystyle\left.\sum_{i=1}^{N}a_{i}y_{i}\middle/\sum_{i=1}^{N}a_{i}\right.\rightarrow_{\mathbb{P}_{CC}}\quad 𝔼(AYS=1)/(A=1S=1),\displaystyle\mathbb{E}(AY\mid S=1)/\mathbb{P}(A=1\mid S=1),
=\displaystyle= 𝔼(YA=1,S=1),\displaystyle\mathbb{E}(Y\mid A=1,S=1),
=\displaystyle= (Y=1,S=1A=1)(S=1A=1),\displaystyle\frac{\mathbb{P}(Y=1,S=1\mid A=1)}{\mathbb{P}(S=1\mid A=1)},
=\displaystyle= (Y=1A=1)(S=1A=1), because Y=1 implies S=1;\displaystyle\frac{\mathbb{P}(Y=1\mid A=1)}{\mathbb{P}(S=1\mid A=1)},\text{ because }Y=1\text{ implies }S=1;
=\displaystyle= (Y=1A=1)/q1,\displaystyle\mathbb{P}(Y=1\mid A=1)/q_{1},
=\displaystyle= (Y(1)=1A=1)/q1 since when A=1 we observe Y(1).\displaystyle\mathbb{P}(Y^{(1)}=1\mid A=1)/q_{1}\text{ since when }A=1\text{ we observe }Y^{(1)}.

For the denominator, following Li and Greene 11, we now suppose that the propensity score can only take on finite values {pk,k=1,,K}\{p_{k},k=1,...,K\} where each pk<1p_{k}<1. We let the radius be ρ1=0\rho_{1}=0. Let MkM_{k} be the number of times an arbitrary untreated control participant is matched to any treated control participant with propensity score pkp_{k}.

First, we show that the mean weight within each propensity score stratum converges to the target weight times the probability mass of the stratum.

𝔼{Mk𝑪=𝒄},\displaystyle\mathbb{E}\{M_{k}\mid\boldsymbol{C}=\boldsymbol{c}\},
=𝔼{Mk𝑪=𝒄,S=1,Y=0}, by outcome rarity [CC] or control exchangeability [TND];\displaystyle=\mathbb{E}\{M_{k}\mid\boldsymbol{C}=\boldsymbol{c},S=1,Y=0\},\text{ by outcome rarity [CC] or control exchangeability [TND];}
=𝔼{MkπN(𝒄)=pk,𝑪=𝒄,S=1,Y=0}{πN(𝒄)=pk𝑪=𝒄,S=1,Y=0},\displaystyle=\mathbb{E}\{M_{k}\mid\pi_{N}(\boldsymbol{c})=p_{k},\boldsymbol{C}=\boldsymbol{c},S=1,Y=0\}\mathbb{P}\{\pi_{N}(\boldsymbol{c})=p_{k}\mid\boldsymbol{C}=\boldsymbol{c},S=1,Y=0\},
by the law of total expectation and due to the definition of MkM_{k} only taking non-zero values within the stratum pkp_{k};
={A=1πN(𝒄)=pk,𝑪=𝒄,S=1,Y=0}{A=0πN(𝒄)=pk,𝑪=𝒄,S=1,Y=0}{πN(𝒄)=pk𝑪=𝒄,S=1,Y=0},\displaystyle=\frac{\mathbb{P}\{A=1\mid\pi_{N}(\boldsymbol{c})=p_{k},\boldsymbol{C}=\boldsymbol{c},S=1,Y=0\}}{\mathbb{P}\{A=0\mid\pi_{N}(\boldsymbol{c})=p_{k},\boldsymbol{C}=\boldsymbol{c},S=1,Y=0\}}\mathbb{P}\{\pi_{N}(\boldsymbol{c})=p_{k}\mid\boldsymbol{C}=\boldsymbol{c},S=1,Y=0\},
since the expected weight is the probability that there exists a treated (control) participant in the stratum times the inverse density of
untreated (control) participants in the stratum;
={A=1πN(𝒄)=pk,𝑪=𝒄}{A=0πN(𝒄)=pk,𝑪=𝒄}{πN(𝒄)=pk𝑪=𝒄}, by control exchangeability/rare outcome;\displaystyle=\frac{\mathbb{P}\{A=1\mid\pi_{N}(\boldsymbol{c})=p_{k},\boldsymbol{C}=\boldsymbol{c}\}}{\mathbb{P}\{A=0\mid\pi_{N}(\boldsymbol{c})=p_{k},\boldsymbol{C}=\boldsymbol{c}\}}\mathbb{P}\{\pi_{N}(\boldsymbol{c})=p_{k}\mid\boldsymbol{C}=\boldsymbol{c}\},\text{ by control exchangeability/rare outcome;}
N{A=1𝑪=𝒄}{A=0𝑪=𝒄}{π(𝒄)=pk𝑪=𝒄}, assuming consistency of the propensity score estimation, by properties of the\displaystyle\rightarrow_{N}\frac{\mathbb{P}\{A=1\mid\boldsymbol{C}=\boldsymbol{c}\}}{\mathbb{P}\{A=0\mid\boldsymbol{C}=\boldsymbol{c}\}}\mathbb{P}\{\pi(\boldsymbol{c})=p_{k}\mid\boldsymbol{C}=\boldsymbol{c}\},\text{ assuming consistency of the propensity score estimation, by properties of the}
propensity score.

This means that for an untreated case observation jj that uses untreated control observation ii^{*}’s weight, the large-sample mean of the weight will approximate π(𝐂)/{1π(𝐂)}\pi(\boldsymbol{C})/\{1-\pi(\boldsymbol{C})\}.

Now denote by mj,k={mj if πN(Cj)=pk;0 otherwise}m_{j,k}=\{m_{j}\text{ if }\pi_{N}(C_{j})=p_{k};0\text{ otherwise}\} the weight of individual jj corresponding to the propensity score stratum kk; MkM_{k} is the corresponding random variable. Note that if we assume that the form of the propensity score is known, all of the randomness of MkM_{k} comes from 𝐂\boldsymbol{C}. The matching estimator in the denominator converges to

j=1N(1aj)yjmj/j=1Naj=j=1Nk=1K(1aj)yjmj,k/j=1Naj\displaystyle\left.\sum_{j=1}^{N}(1-a_{j})y_{j}m_{j}\middle/\sum_{j=1}^{N}a_{j}\right.\quad=\left.\sum_{j=1}^{N}\sum_{k=1}^{K}(1-a_{j})y_{j}m_{j,k}\middle/\sum_{j=1}^{N}a_{j}\right.
N𝔼{k=1K(1A)YMkS=1}(A=1S=1),\displaystyle\rightarrow_{N}\frac{\mathbb{E}\left\{\sum_{k=1}^{K}(1-A)YM_{k}\mid S=1\right\}}{\mathbb{P}(A=1\mid S=1)},
=𝔼{k=1K(1A)YMkS=1}(S=1)(S=1A=1)(A=1),\displaystyle=\frac{\mathbb{E}\left\{\sum_{k=1}^{K}(1-A)YM_{k}\mid S=1\right\}\mathbb{P}(S=1)}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},
=k=1K𝔼{(1A)YSMk}(S=1A=1)(A=1),\displaystyle=\frac{\sum_{k=1}^{K}\mathbb{E}\left\{(1-A)YSM_{k}\right\}}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},
=k=1K𝔼{(1A)YMk}(S=1A=1)(A=1), because the outcome Y=1 implies S=1,\displaystyle=\frac{\sum_{k=1}^{K}\mathbb{E}\left\{(1-A)YM_{k}\right\}}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},\text{ because the outcome }Y=1\text{ implies }S=1,
=k=1K𝔼{(1A)Y(0)Mk}(S=1A=1)(A=1),because when A=0, we observe Y(0),\displaystyle=\frac{\sum_{k=1}^{K}\mathbb{E}\left\{(1-A)Y^{(0)}M_{k}\right\}}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},\text{because when }A=0\text{, we observe }Y^{(0)},
=k=1K𝔼[𝔼{Y(0)(1A)Mk𝑪}](S=1A=1)(A=1),\displaystyle=\frac{\sum_{k=1}^{K}\mathbb{E}\left[\mathbb{E}\{Y^{(0)}(1-A)M_{k}\mid\boldsymbol{C}\}\right]}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},
=𝔼[𝔼{Y(0)𝑪}k=1K𝔼{(1A)Mk𝑪}](S=1A=1)(A=1), because Y(0) is assumed independent of treatment conditional on covariates;\displaystyle=\frac{\mathbb{E}\left[\mathbb{E}\{Y^{(0)}\mid\boldsymbol{C}\}\sum_{k=1}^{K}\mathbb{E}\{(1-A)M_{k}\mid\boldsymbol{C}\}\right]}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},\text{ because $Y^{(0)}$ is assumed independent of treatment conditional on covariates;}
=𝔼[𝔼{Y(0)𝑪}k=1K(A=0Mk,𝑪)𝔼(Mk𝑪)](S=1A=1)(A=1),\displaystyle=\frac{\mathbb{E}\left[\mathbb{E}\{Y^{(0)}\mid\boldsymbol{C}\}\sum_{k=1}^{K}\mathbb{P}(A=0\mid M_{k},\boldsymbol{C})\mathbb{E}(M_{k}\mid\boldsymbol{C})\right]}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},
=𝔼[𝔼{Y(0)𝑪}k=1K(A=0𝑪)(A=1𝑪)(A=0𝑪){π(𝑪)=pk𝑪}](S=1A=1)(A=1), subbing in the previous result and by properties of the\displaystyle=\frac{\mathbb{E}\left[\mathbb{E}\{Y^{(0)}\mid\boldsymbol{C}\}\sum_{k=1}^{K}\mathbb{P}(A=0\mid\boldsymbol{C})\frac{\mathbb{P}(A=1\mid\boldsymbol{C})}{\mathbb{P}(A=0\mid\boldsymbol{C})}\mathbb{P}\{\pi(\boldsymbol{C})=p_{k}\mid\boldsymbol{C}\}\right]}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},\text{ subbing in the previous result and by properties of the}
propensity score,
=𝔼[𝔼{Y(0)𝑪j}k=1K(A=1𝑪){π(𝑪)=pk𝑪}](S=1A=1)(A=1),\displaystyle=\frac{\mathbb{E}\left[\mathbb{E}\{Y^{(0)}\mid\boldsymbol{C}_{j}\}\sum_{k=1}^{K}\mathbb{P}(A=1\mid\boldsymbol{C})\mathbb{P}\{\pi(\boldsymbol{C})=p_{k}\mid\boldsymbol{C}\}\right]}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},
=𝔼[𝔼{Y(0)𝑪}(A=1𝑪)](S=1A=1)(A=1), because k=1K{π(𝑪)=pk𝑪}=1,\displaystyle=\frac{\mathbb{E}\left[\mathbb{E}\{Y^{(0)}\mid\boldsymbol{C}\}\mathbb{P}(A=1\mid\boldsymbol{C})\right]}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},\text{ because }\sum_{k=1}^{K}\mathbb{P}\{\pi(\boldsymbol{C})=p_{k}\mid\boldsymbol{C}\}=1,
={Y(0)=1,A=1}(S=1A=1)(A=1),\displaystyle=\frac{\mathbb{P}\{Y^{(0)}=1,A=1\}}{\mathbb{P}(S=1\mid A=1)\mathbb{P}(A=1)},
={Y(0)=1A=1}q1.\displaystyle=\frac{\mathbb{P}\{Y^{(0)}=1\mid A=1\}}{q_{1}}.

Appendix E Propensity score matching pseudocode

Table 4 presents the two-stage propensity score matching pseudocode for the estimation of marginal risk ratio among the treated (mRRT).

Table 4: Propensity score matching pseudocode for estimation of ψmRRT\psi_{mRRT}
Step Description
1 With data structure O={(Yi,𝑪i,Ai),i=1,,N}O=\{(Y_{i},\boldsymbol{C}_{i},A_{i}),i=1,\cdots,N\}, fit a propensity score model for π=Pr(A=1|𝑪)\pi=Pr(A=1|\boldsymbol{C}) using only the controls (Y=0Y=0), then make predictions for all participants to obtain π^i;i=1,,N\hat{\pi}_{i};i=1,...,N.
2 Split data into cases (Y=1Y=1) and controls (Y=0Y=0).
3 First stage: matching for covariate balance among the controls,
3.1 Compute the empirical standard deviation of the logit propensity scores among controls, σ^ctrl=SD{logit(π^i):Yi=0}\hat{\sigma}^{{ctrl}}=\mathrm{SD}\{\text{logit}(\hat{\pi}_{i}):Y_{i}=0\}. Define the radius ρ1=d1×σ^ctrl\rho_{1}=d_{1}\times\hat{\sigma}^{ctrl} where d1>0d_{1}>0 is a user–chosen constant.
3.2 Define sets of treated and untreated groups in controls, S1ctrl={i:Yi=0,Ai=1},S0ctrl={i:Yi=0,Ai=0}S_{1}^{ctrl}=\{i:Y_{i}=0,A_{i}=1\},S_{0}^{ctrl}=\{i:Y_{i}=0,A_{i}=0\}. Build a distance matrix DctrlD^{ctrl} with entries |logit(π^j)logit(π^)||\text{logit}(\hat{\pi}_{j})-\text{logit}(\hat{\pi}_{\ell})| for jS1ctrlj\in S_{1}^{ctrl} and S0ctrl\ell\in S_{0}^{ctrl}.
3.3 Given radius ρ1\rho_{1}, for each treated control jj for jS1ctrlj\in S_{1}^{ctrl}:
3.3.1 Define the match set Lj={S0ctrl:Dj,lctrlρ1}L_{j}=\{\ell\in S_{0}^{ctrl}:D^{ctrl}_{j,l}\leq\rho_{1}\}. If there are no eligible matches, set Lj=L_{j}=\ell^{*} such that Dj,ctrl=min(Dj,ctrl)D^{ctrl}_{j,\ell^{*}}=\text{min}(D^{ctrl}_{j,\ell}).
3.3.2 Define a matrix mm with dimension |S1ctrl|×|S0ctrl||S_{1}^{ctrl}|\times|S_{0}^{ctrl}|, with mj,=𝟙(Lj)/|Lj|m_{j,\ell}=\mathbbm{1}_{(\ell\in L_{j})}/\lvert L_{j}\rvert.
3.4 Compute the weight mm_{\ell} for each untreated control as, m=jS1trlmj,m_{\ell}=\sum_{j\in S_{1}^{trl}}m_{j,\ell}.
4 Second stage: donor matching,
4.1 Compute the empirical standard deviation of the logit propensity scores among the untreated group, σ^untreat=SD{logit(π^i):Ai=0}\hat{\sigma}^{{untreat}}=\mathrm{SD}\{\text{logit}(\hat{\pi}_{i}):A_{i}=0\}. Define the radius ρ2=d2×σ^untreat\rho_{2}=d_{2}\times\hat{\sigma}^{untreat} where d2>0d_{2}>0 is a user–chosen constant.
4.2 Define sets of treated and untreated groups in cases, S1case={i:Yi=1,Ai=1}S_{1}^{case}=\{i:Y_{i}=1,A_{i}=1\} and S0case={i:Yi=1,Ai=0}S_{0}^{case}=\{i:Y_{i}=1,A_{i}=0\}. Build a distance matrix DuntreatD^{untreat} with entries |logit(π^k)logit(π^)||\text{logit}(\hat{\pi}_{k})-\text{logit}(\hat{\pi}_{\ell})| for kS0casek\in S_{0}^{case} and S0ctrl\ell\in S_{0}^{ctrl}.
4.3 Given radius ρ2\rho_{2}, then for each untreated case kk for kS0casek\in S_{0}^{case},
4.3.1 Define the match set Lk={S0ctrl:Dk,untreatρ2}L_{k}=\{\ell\in S_{0}^{ctrl}:D^{untreat}_{k,\ell}\leq\rho_{2}\}. If there are no eligible matches, set Lk=L_{k}=\varnothing.
4.3.2 Compute the weight for each untreated case kk, mk={0,Lk=,1|Lk|Lkm,|Lk|>0.m_{k}=\begin{cases}0,&L_{k}=\varnothing,\\[6.0pt] \displaystyle\frac{1}{\lvert L_{k}\rvert}\sum_{\ell\in L_{k}}m_{\ell},&\lvert L_{k}\rvert>0.\end{cases}
5 For each treated case tS1caset\in S_{1}^{case}, define mt=1m_{t}=1.
6 The mRRT is estimated as the ratio of the weighted mean outcomes among the treated and untreated groups, i.e., ψ^mRRT=i=1NYiAi/i=1NYi(1Ai)mi\hat{\psi}_{mRRT}=\sum_{i=1}^{N}Y_{i}A_{i}/\sum_{i=1}^{N}Y_{i}(1-A_{i})m_{i}.

Appendix F Covariate balance checking algorithms for IPTW and propensity score matching

Table 5 gives the covariate balance checking algorithms for inverse probability of treatment weighting (IPTW) in the controls. Table 6 gives the covariate balance checking algorithms for matching in two stages.

Table 5: Covariate balance checking algorithm for IPTW
Step Description
1 With data structure O={(Yi,𝑪i,Ai),i=1,,N}O=\{(Y_{i},\boldsymbol{C}_{i},A_{i}),i=1,\cdots,N\}, fit a propensity score model for π=Pr(A=1|𝑪)\pi=Pr(A=1|\boldsymbol{C}) using only the controls (Y=0Y=0), then make predictions for all participants to obtain π^i;i=1,,N\hat{\pi}_{i};i=1,...,N.
2 Compute the IPTW weights (wiIPTWw_{i}^{IPTW}): For mRRT: wi=𝕀(Ai=1)+𝕀(Ai=0)π^i1π^iw_{i}=\mathbb{I}(A_{i}=1)+\mathbb{I}(A_{i}=0)\frac{\hat{\pi}_{i}}{1-\hat{\pi}_{i}}, For mRR: wi=𝕀(Ai=1)π^i+𝕀(Ai=0)1π^iw_{i}=\frac{\mathbb{I}(A_{i}=1)}{\hat{\pi}_{i}}+\frac{\mathbb{I}(A_{i}=0)}{1-\hat{\pi}_{i}}.
3 Among the controls, define sets of treated and untreated groups, S1={i:Yi=0,Ai=1},S0={i:Yi=0,Ai=0}S_{1}=\{i:Y_{i}=0,A_{i}=1\},S_{0}=\{i:Y_{i}=0,A_{i}=0\}
3.1 Compute weighted means and variance: For each covariate C𝑪C\in\boldsymbol{C}, calculate the weighted mean (C¯g\bar{C}_{g}) and weighted variance (σ^g2\hat{\sigma}^{2}_{g}) for each set g{1,0}g\in\{1,0\}: C¯g={i𝒮gwiCi}/{i𝒮gwi}\bar{C}_{g}=\{\sum_{i\in\mathcal{S}_{g}}w_{i}C_{i}\}/\{\sum_{i\in\mathcal{S}_{g}}w_{i}\}, σ^g2={i𝒮gwi(CiC¯g)2}/{i𝒮gwi}\qquad\hat{\sigma}^{2}_{g}=\{\sum_{i\in\mathcal{S}_{g}}w_{i}(C_{i}-\bar{C}_{g})^{2}\}/\{\sum_{i\in\mathcal{S}_{g}}w_{i}\}.
3.2 Compute Weighted Standardized Mean Differences (SMD): SMD={|C¯1C¯0|}/{(σ^12+σ^02)/2}SMD=\{|\bar{C}_{1}-\bar{C}_{0}|\}\big/\{\sqrt{(\hat{\sigma}^{2}_{1}+\hat{\sigma}^{2}_{0})/{2}}\}.
Table 6: Covariate balance checking algorithm for propensity score matching for the mRRT
Step Description
1 With data structure O={(Yi,𝑪i,Ai),i=1,,N}O=\{(Y_{i},\boldsymbol{C}_{i},A_{i}),i=1,\cdots,N\}, fit a propensity score model for π=Pr(A=1|𝑪)\pi=Pr(A=1|\boldsymbol{C}) using only the controls (Y=0Y=0), then make predictions for all participants to obtain π^i;i=1,,N\hat{\pi}_{i};i=1,...,N.
2 Compute the matching weights (wiMatchingw_{i}^{Matching}) for two stages:
2.1 First stage: define sets of treated and untreated groups among the controls, S1ctrl={i:Yi=0,Ai=1},S0ctrl={i:Yi=0,Ai=0}S_{1}^{ctrl}=\{i:Y_{i}=0,A_{i}=1\},\quad S_{0}^{ctrl}=\{i:Y_{i}=0,A_{i}=0\}. Based on the step 3 in the propensity score matching algorithm (Table 4), the weights in first stage are wiMatching1={1,ifiS1ctrl,mi,ifiS0ctrl.w_{i}^{Matching_{1}}=\begin{cases}1,&\text{if}~i\in S_{1}^{ctrl},\\[6.0pt] m_{i},&\text{if}~i\in S_{0}^{ctrl}.\end{cases}
2.2 Second stage: define the set of untreated cases, S0case={i:Yi=1,Ai=0}S_{0}^{case}=\{i:Y_{i}=1,A_{i}=0\}. Based on the match set LkL_{k} where kS0casek\in S_{0}^{case} defined at step 4.31 in Table 4, the weights in second stage are wiMatching2={1,ifiS0case,(k:|Lk|>0)𝟙(iLk)|Lk|,ifiS0ctrl.w_{i}^{Matching_{2}}=\begin{cases}1,&\text{if}~i\in S_{0}^{case},\\[6.0pt] \sum_{(k:\lvert L_{k}\rvert>0)}\frac{\mathbbm{1}(i\in L_{k})}{\lvert L_{k}\rvert},&\text{if}~i\in S_{0}^{ctrl}.\end{cases}
3 Balance checking for matching in two stages based on the steps 3.1 and 3.2 in Figure 5:
3.1 For first stage: compute the weighted mean, variance and SMD between sets S1ctrl,S0ctrlS_{1}^{ctrl},S_{0}^{ctrl}.
3.2 For second stage: compute the weighted mean, variance and SMD between sets S0case,S0ctrlS_{0}^{case},S_{0}^{ctrl}.

Appendix G Simulation studies

G.1 Data-generating mechanisms for CC and TND studies

Table 7 presents the data-generating mechanism for simulation scenarios (a), (b) and (c) of the CC study. The treatment assignment mechanisms for mRRT and mRR were varied to illustrate settings where each parameter would be most of interest; specifically, the mRRT is more interesting to estimate when some untreated individual have zero probability of being treated (so the mRR does not exist) but all treated individuals had a non-zero probability of being untreated. To form each dataset, 1,000 cases and 4,000 controls were randomly sampled.

Table 7: Data-generating mechanism of simulation scenarios (a), (b), and (c) for the CC study. Treatment assignment: A(a) for scenario (a), A(b) for scenario (b), and A(c) for scenario (c); Outcome: Y(a,b) for scenarios (a) and (b), and Y(c) for scenario (c).
Variable Generating Mechanism
Cj,j=(1,2)C_{j},\ j=(1,2) Multivariate normal distribution as 𝒩([00],[10.30.31])\sim\text{Multivariate normal distribution as }\mathcal{N}\!\left(\begin{bmatrix}0\\ 0\end{bmatrix},\begin{bmatrix}1&0.3\\ 0.3&1\end{bmatrix}\right)
A(a)A(a) Bernoulli(pV)\sim\mathrm{Bernoulli}(p_{V}) where pV={0if C1<1,logit1(1+0.4C1+0.7C2)otherwisep_{V}=\left\{\begin{aligned} &0\quad\text{if }C_{1}<-1,\\ &\text{logit}^{-1}(-1+0.4\,C_{1}+0.7\,C_{2})\quad\text{otherwise}\\ \end{aligned}\right.
A(b)A(b) Bernoulli(pV)\sim\mathrm{Bernoulli}(p_{V}) where pV=logit1(1+0.4C1+0.7C2)p_{V}=\text{logit}^{-1}(-1+0.4\,C_{1}+0.7\,C_{2})
A(c)A(c) Bernoulli(pV)\sim\mathrm{Bernoulli}(p_{V}) where pV=logit1(1+0.4C1+0.7C2+0.4C1C2)p_{V}=\text{logit}^{-1}(-1+0.4\,C_{1}+0.7\,C_{2}+0.4\,C_{1}\,C_{2})
Y(a,b)Y(a,b) Bernoulli(logit(p)=4.95+0.4C1+0.7C2+0.7AC10.9A)\sim\mathrm{Bernoulli}\bigl(\text{logit}(p)=-4.95+0.4C_{1}+0.7C_{2}+0.7AC_{1}-0.9A\bigr)
Y(c)Y(c) Bernoulli(logit(p)=5.07+0.4C1+0.7C2+0.7AC10.9A)\sim\mathrm{Bernoulli}\bigl(\text{logit}(p)=-5.07+0.4C_{1}+0.7C_{2}+0.7AC_{1}-0.9A\bigr)

We also generated data from a TND. We first generated population data of sample size N= 2×1062\times 10^{6}. Each individual was assigned two baseline covariates, continuous C1C_{1} and binary C2C_{2}. Vaccination status AA was then generated based on the two measured covariates. For the setting in which ψmRRT\psi_{mRRT} is well defined, partial non-overlap was induced by setting pA=0p_{A}=0 for C1<1C_{1}<-1. We also considered a setting without this restriction, in which ψmRR\psi_{mRR} is defined. Individuals could become infected with a non-target pathogen (I0I_{0}), or the target pathogen (I1I_{1}). Symptom indicators (W0,W1W_{0},W_{1}) were generated conditional on corresponding infection status but were unobserved in the data. The composite indicator W=max(W0,W1)W=max(W_{0},W_{1}) representing any symptomatic presentation was observed. Hospitalization (HH) was then simulated conditional on WW. The TND sample consisted of 5,000 individuals randomly selected among those hospitalized (H=1H=1). The observed TND data therefore has the structure (C1,C2,A,Y)(C_{1},C_{2},A,Y) where Y=I1Y=I_{1} indicates cases status for the target pathogen. Table 8 presents the data-generating mechanism for the TND simulation study.

Table 8: Data generating mechanism for the TND simulation. Treatment assignment: mRRT [A(a)] and mRR [A(b)]
Variable Generating Mechanism Notes
C1C_{1} 𝒩(0,1)\sim\mathcal{N}(0,1) Measured covariate
C2C_{2} Bernoulli(0.4)\sim\mathrm{Bernoulli}(0.4) Measured covariate
A(a)A(a) Bernoulli(pV)\sim\mathrm{Bernoulli}(p_{V}) where pV={0if C1<1,logit1(1+0.5C1+0.3C2)otherwisep_{V}=\left\{\begin{aligned} &0\quad\text{if }C_{1}<-1,\\ &\text{logit}^{-1}(-1+0.5\,C_{1}+0.3\,C_{2})\quad\text{otherwise}\\ \end{aligned}\right. Treatment status
A(b)A(b) Bernoulli(pV)\sim\mathrm{Bernoulli}(p_{V}) where pV=logit1(1+0.5C1+0.3C2)p_{V}=\text{logit}^{-1}(-1+0.5\,C_{1}+0.3\,C_{2}) Treatment status
I0I_{0} Bernoulli{logit(p)=2.50.9C11.2C2}\sim\mathrm{Bernoulli}\{logit(p)=-2.5-0.9\,C_{1}-1.2\,C_{2}\} Non-target pathogen
I1I_{1} Bernoulli{logit(p)=3.6+1.2C1+1.2C20.9A\sim\mathrm{Bernoulli}\{logit(p)=-3.6+1.2\,C_{1}+1.2\,C_{2}-0.9\,A} Target pathogen
W0W_{0} Bernoulli{logit(p)=0.6+C1}\sim\mathrm{Bernoulli}\{logit(p)=0.6+\,C_{1}\} for I0=1I_{0}=1 Unobserved symptom
W1W_{1} Bernoulli{logit(p)=1.8+2C10.8A}\sim\mathrm{Bernoulli}\{logit(p)=-1.8+2\,C_{1}-0.8\,A\} for I1=1I_{1}=1 Unobserved symptom
WW =max{W0,W1)=max\{W_{0},W_{1}) Observed symptom
HH Bernoulli{logit(p)=10.5C1}\sim\mathrm{Bernoulli}\{logit(p)=1-0.5\,C_{1}\} for W=1W=1 Hospitalization

G.2 Radius definition and adjustment

Propensity score matching conventionally utilizes the logit of the estimated propensity score (PS) 21, Πi=logit(πi)\Pi_{i}=\text{logit}(\pi_{i}), as the primary distance metric. The logit transformation is preferred because it linearizes the distance metric by stretching the boundaries near 0 and 1, ensuring a more uniform radius size across the entire propensity score distribution. The standard recommendation for the radius width (ρ\rho) is set to ρ=0.2×σ(Π)\rho=0.2\times\sigma(\Pi) where σ(Π)\sigma(\Pi) is the standard deviation of the logit-transformed propensity scores 21, 4.

In our two-stage propensity score matching, we defined two distinct radii based on the standard deviations of the logit transformed propensity scores: ρ1=d1×σ^Πctrl,ρ2=d2×σ^Πuntreat\rho_{1}=d_{1}\times\hat{\sigma}_{\Pi^{ctrl}},\rho_{2}=d_{2}\times\hat{\sigma}_{\Pi^{untreat}} where σ^Πctrl=σ^{Πi:Yi=0},σ^Πuntreat=σ^{Πi:Ai=0}\hat{\sigma}_{\Pi^{ctrl}}=\hat{\sigma}\{\Pi_{i}:Y_{i}=0\},\hat{\sigma}_{\Pi^{untreat}}=\hat{\sigma}\{\Pi_{i}:A_{i}=0\}. In a representative simulation (NN= 5,000), these standard deviations were notably higher than those observed in the scenarios without partial non-overlap: for example, σ^Πctrl=6.58\hat{\sigma}_{\Pi^{ctrl}}=6.58 and σ^Πuntreat=7.12\hat{\sigma}_{\Pi^{untreat}}=7.12 for the CC sutdy, and 8.35 and 7.83, respectively, for the TND study. The large standard deviation values reflect a highly dispersed logit distribution, driven by the extreme values produced by the one-sided positivity violation (C1<1C_{1}<-1). In such scenarios, using the conventional radius width of 0.2 would result in an excessively permissive matching threshold, potentially pairing individuals with highly dissimilar covariate profiles and undermining the goal of the matching procedure.

To identify the optimal radius width that maintains sufficient covariate balance, we evaluated a sequence of progressively tighter radius proportional constants. For the CC study, we set d1=(0.05,0.03,0.01,0.005)d_{1}=(0.05,0.03,0.01,0.005) and d2=(0.05,0.03,0.02,0.01)d_{2}=(0.05,0.03,0.02,0.01). At the upper end of this range, d=0.05d=0.05, the resulting radius is approximately 0.330.33 on the logit scale in the first stage. This tolerance would allow, for instance, an individual with a logit PS of 0 (π=0.5\pi=0.5) to be matched to another with a logit PS of 0.33 (π0.58\pi\approx 0.58), representing a relatively wide radius. In contrast, if we set d=0.01d=0.01, the implied radius is approximately 0.07 on the logit scale, allowing matches only between individuals with nearly identical propensity scores (e.g., π=0.50\pi=0.50 versus π0.52\pi\approx 0.52), thereby prioritizing covariate balance at the cost of reduced matching flexibility. For the TND study, we used d1=d2=(0.05,0.03,0.02,0.01)d_{1}=d_{2}=(0.05,0.03,0.02,0.01). Using these scales, we conducted simulations under sample sizes (NN=5,000), and presented the covariate balances and distribution overlap of logit propensity scores before and after matching.

G.3 Diagnostic checking

G.3.1 Diagnostic checking in the CC simulation scenario (b) and (c)

Figure 4 presents the propensity score distributions for mRR weighting in a single CC dataset of size N=5,000N=5,000 from simulation scenario (b). The top row shows decent overlap before weighting and excellent overlap between untreated and treated controls after weighting. The bottom row suggests that the propensity score models, fit with control data, are extrapolating to predict values for the cases (little overlap of the blue cases above 0.75 and 0.85 on the right-hand side of each of the left and right bottom histograms, respectively). Figure 5 presents the propensity score distributions for mRR weighting in CC simulation scenario (c). Similarly, IPTW improved overlap between untreated and treated controls. Some propensity score extrapolation may again be necessary in this scenario.

Figure 4: Diagnostic checks of the propensity score overlap for mRR weighting in a single CC dataset of size N=5,000N=5,000 in simulation scenario (b): comparison between the treated controls and untreated controls before and after IPTW weighting, between untreated cases and untreated controls, and between treated cases and treated controls.
Figure 5: Diagnostic checks of the propensity score overlap for mRR weighting in a single CC dataset of size N=5,000N=5,000 in simulation scenario (c): comparison between the treated controls and untreated controls before and after weighting for IPTW, between untreated controls and untreated cases before, and between treated cases and treated controls.

G.3.2 Diagnostic checking in the TND simulation study

Table 9 summarizes the two-stage covariate balance checking for IPTW and matching estimating the mRRT in a single TND dataset of N=5,000N=5,000 using four different two-stage matching radii with the radius scaling parameters, d1=d2{0.05,0.03,0.02,0.01d_{1}=d_{2}\in\{0.05,0.03,0.02,0.01}. Before matching, both stages showed limited overlap and substantial imbalance in covariates, with large SMD particularly for C1C_{1}. Applying radius matching markedly improved alignment between the groups, both in the first stage, where matching was performed in the controls and in the second stage, where matching was performed between untreated cases and controls. Figure 6 presents the propensity score distribution before and after IPTW and the two-stage matching weights. In the first stage (top row), after weighting by IPTW or matching, the two treatment control groups became more aligned in their distributions. In the second stage (bottom row), prior to matching, the two outcome untreated groups exhibited distinct distributions, with untreated controls concentrated above 0.2. Then the two groups showed substantially better overlap following the second stage matching. Moreover, the right tail of the untreated cases evident in the pre-matching panel (bottom left) is absent in the matched panel because these individuals had no eligible matches and therefore received zero weights. Figure 7 presents the propensity score distributions in controls before and after IPTW weighting, and the distributions in untreated and treated individuals for the mRR estimation. IPTW weighting resolved the small differences between treated and untreated in the control group (top row). The bottom row suggests that the propensity score models, fit with control data, are extrapolating to predict values for the cases (little overlap of the blue cases above 0.5 on the right-hand side of each of the bottom histograms).

Table 9: Diagnostic checks of the covariate balance checking for the mRRT weighting in a single simulated TND dataset: comparison among controls for IPTW and matching, and among untreated individuals for matching across matching radii. Variables are summarized as mean and standard deviation (mean (SD)); SMD: standardized mean difference.
First stage: matching among the controls
d1d_{1} Variable (A=0,Y=0)(A=0,Y=0) (A=1,Y=0)(A=1,Y=0) SMD
Before weighting - Size 2427 589
C1C_{1} -0.612 (0.855) 0.021 (0.659) 0.829
C2C_{2} 0.174 (0.379) 0.199 (0.399) 0.064
IPTW - C1C_{1} 0.015 (0.630) 0.021 (0.659) 0.008
C2C_{2} 0.198 (0.398) 0.199 (0.399) 0.002
Matching 0.050.05 Size 1581 589
C1C_{1} -0.062 (0.57) 0.021 (0.659) 0.135
C2C_{2} 0.177 (0.382) 0.199 (0.399) 0.055
0.030.03 Size 1581 589
C1C_{1} -0.018 (0.605) 0.021 (0.659) 0.062
C2C_{2} 0.185 (0.389) 0.199 (0.399) 0.034
0.020.02 Size 1581 589
C1C_{1} 0.003 (0.628) 0.021 (0.659) 0.028
C2C_{2} 0.190 (0.393) 0.199 (0.399) 0.021
0.010.01 Size 1581 589
C1C_{1} 0.019 (0.65) 0.021 (0.659) 0.003
C2C_{2} 0.193 (0.395) 0.199 (0.399) 0.014
Second stage: donor matching (independent of d1d_{1}) between untreated cases and controls
d2d_{2} Variable (A=0,Y=0)(A=0,Y=0) (A=0,Y=1)(A=0,Y=1) SMD
Before weighting - Size 2427 1466
C1C_{1} -0.612 (0.855) 1.215 (0.760) 2.254
C2C_{2} 0.174 (0.380) 0.601 (0.490) 0.975
Matching 0.050.05 Size 2407 1457
C1C_{1} 0.8 (0.699) 1.199 (0.747) 0.553
C2C_{2} 0.419 (0.493) 0.598 (0.49) 0.365
0.030.03 Size 2377 1431
C1C_{1} 1.004 (0.69) 1.169 (0.717) 0.235
C2C_{2} 0.493 (0.5) 0.595 (0.491) 0.208
0.020.02 Size 2345 1416
C1C_{1} 1.088 (0.682) 1.154 (0.705) 0.095
C2C_{2} 0.524 (0.499) 0.593 (0.491) 0.140
0.010.01 Size 2270 1387
C1C_{1} 1.132 (0.67) 1.13 (0.691) 0.004
C2C_{2} 0.545 (0.498) 0.587 (0.492) 0.085
Figure 6: Diagnostic checks of the propensity score overlap for mRRT weighting in a single simulated TND dataset: comparison between the treated controls and untreated controls before and after weighting for IPTW and matching (d1=0.01d_{1}=0.01 and d2=0.01d_{2}=0.01), and between untreated controls and untreated cases before and after matching.
Figure 7: Diagnostic checks of the propensity score overlap for mRR weighting in a TND simulation study: comparison between the treated controls and untreated controls before and after IPTW weighting, between untreated cases and untreated controls, and between treated cases and treated controls.

G.4 Results for simulations

G.4.1 Results for CC simulation scenario (c)

Table 10 presents the estimates from CC simulation scenario (c), which generates CC data with a nonlinear treatment data-generating model. In implementing the IPTW and doubly robust one-step (OS) estimators, we specified propensity score models including only the main effects of C1C_{1}, C2C_{2}, and the outcome models including main terms of C1C_{1}, C2C_{2} and AA. IPTW_SL and OS_SL denote estimators in which nuisance functions were estimated using machine learning via Super Learner (SL.nnls, SL.glmnet, SL.hal9001). Standard error of IPTW_SL was estimated using a double robust sandwich estimator, while standard error of OS_SL was estimated based on the efficient influence function. We truncated the estimated probabilities μa^,π^a\hat{\mu_{a}},\hat{\pi}_{a} for a(1,0)a\in(1,0) to the interval [0.001, 0.999].

Table 10: Estimates in case–control simulation scenario (c) (500 draws of N=5,000N=5,000). MC SE: Monte Carlo standard error; Coverage Rate: % of confidence intervals that included the true value.
Method Estimate Bias MC SE SE Coverage Rate (%)
Estimation of mRR (true value: 0.773)
IPTW 0.855 0.082 0.061 0.069 81.8
IPTW_SL 0.820 0.047 0.072 0.075 89.6
OS 0.735 0.038 0.069 0.063 85.8
OS_SL 0.764 0.009 0.113 0.105 91.8

G.4.2 Results for the TND simulation study

Table 11 compares the performance of IPTW and the two-stage radius matching for estimation of the mRRT with different choices of the two-stage matching radius multipliers, as well as the performance of IPTW, OS and logistic regression estimators for estimation of the mRR based on 300 replications. For the OS estimator, we applied a correctly specified logistic regression for the outcome and propensity score models, and bounded between [0.01, 0.99] for μ1\mu_{1} and μ0\mu_{0}.

Table 11: Estimates in TND simulation study (300 draws of N=5000N=5000). MC SE: Monte Carlo standard error; BS SE: Mean bootstrap-estimated standard error; Coverage Rate: % of confidence intervals that included the true value
Method d1d_{1} d2d_{2} ψ^\hat{\psi} Bias SE_MC SE_bs Coverage Rate (%)
For the mRRT estimation (true value: 0.392),
IPTW - - 0.358 0.033 0.052 0.054 89.67
Matching 0.05 0.05 0.632 0.240 0.116 0.097 23.67
0.03 0.636 0.244 0.132 0.111 29.67
0.02 0.647 0.256 0.139 0.118 29.33
0.01 0.677 0.285 0.141 0.123 19.33
0.03 0.05 0.503 0.111 0.099 0.088 67.33
0.03 0.485 0.093 0.106 0.099 80.33
0.02 0.487 0.095 0.109 0.105 82.00
0.01 0.450 0.059 0.098 0.103 91.67
0.02 0.05 0.458 0.066 0.091 0.085 85.33
0.03 0.433 0.042 0.096 0.095 91.33
0.02 0.432 0.040 0.098 0.100 92.00
0.01 0.450 0.059 0.098 0.103 91.67
0.01 0.05 0.431 0.039 0.086 0.083 90.67
0.03 0.403 0.011 0.089 0.092 94.33
0.02 0.398 0.006 0.091 0.097 95.33
0.01 0.409 0.017 0.092 0.100 96.00
For the mRR estimation (true value: 0.371),
IPTW - - 0.340 0.032 0.035 0.042 92.67
OS - - 0.323 0.047 0.081 0.082 86.67
Logistic - - 0.267 0.104 0.031 0.034 22.67

For the mRRT estimation, the IPTW exhibited moderate bias (0.033) and coverage (89.67%) below the nominal level. In contrast, the performance of the matching estimators was highly sensitive to the choices of d1d_{1}. When large radii were used in the first stage (d1=0.05d_{1}=0.05), the matching estimator was substantially biased (exceeding 0.24) and had severe undercoverage (below 30%), indicating inadequate covariate balance due to overly permissive matching for the propensity scores. As the matching radii were tightened, bias generally decreased and coverage improved markedly. In particular, combinations with small radii in both stages (e.g,. d1{0.02,0.01}d_{1}\in\{0.02,0.01\} and d1{0.03,0.02,0.01}d_{1}\in\{0.03,0.02,0.01\}) achieved near-zero bias, as low as 0.006. The Monte Carlo and bootstrap standard errors were well-aligned, and coverage rates were close to or exceeding 95%. These results highlight the importance of carefully tuning both stages of the matching procedures and show that, with appropriately chosen radii, two-stage matching can outperform IPTW in terms of bias and coverage. For mRR estimation, IPTW exhibited lower bias and higher coverage rates than the OS estimator, which showed larger bias and undercoverage relative to the true mRR value. This discrepancy is likely attributable to the use of upper bounds (0.98) on the estimated conditional outcome probabilities, as some values of μ^a(𝒄i)\hat{\mu}_{a}(\boldsymbol{c}_{i}) approached one, which can lead to instability, as discussed in Section 2.4.2 of the manuscript. Logistic regression performed poorly despite the absence of effect modification.

G.4.3 Demonstration of double robustness of the OS estimator

Table 12 presents the doubly robustness property of the OS estimator in CC simulation scenario (b). We can see that when either the propensity score or outcome models were correctly specified, the OS estimator was unbiased. In contrast, when the propensity score model was null (i.e. only included an intercept term in the logistic regression), IPTW was highly biased.

Table 12: Demonstration of double robustness of the OS estimator in case–control simulation scenario (b). Bias, Monte Carlo standard errors (MC SE), mean bootstrap-estimated standard errors (BS SE), and coverage rates.
Scenario Method ψ^mRR\hat{\psi}_{mRR} Bias MC SE BS SE Coverage Rate (%)
True value: ψmRR=0.770{\psi}_{mRR}=0.770
Both true IPTW 0.777 0.006 0.066 0.066 93.60
OS 0.786 0.015 0.073 0.078 94.60
Only PS true IPTW 0.777 0.006 0.066 0.066 93.60
OS 0.779 0.008 0.066 0.067 94.00
Only outcome true IPTW 1.827 1.056 0.126 0.133 0
OS 0.783 0.012 0.081 0.081 94.80
Both null IPTW 1.827 1.056 0.126 0.133 0
OS 1.827 1.056 0.126 0.133 0
Both true: both propensity score model and outcome model were correctly specified; Only PS true: the propensity score model was correct but the outcome model was null; Only outcome true: the outcome model was correct but the propensity score model was null; Both null: both models were null.

Appendix H Application

H.1 PROVAQ data

Table 13 presents the characteristics of the study population by case status in the PROVAQ study. Continuous variables are presented as mean (standard deviation); Categorical variables are presented as size (percentage), where percentages are calculated within each column.

Table 13: Descriptive characteristics of the study population by case status in the PROVAQ study.
Variable Overall Controls Cases
Size 1,406 908 498
Age (mean (SD)) 57.87 (12.64) 58.19 (12.62) 57.28 (12.66)
Education (%):
     Less HS 136 (9.7) 83 (9.1) 53 (10.6)
     HS 339 (24.1) 199 (21.9) 140 (28.1)
     College 422 (30.0) 278 (30.6) 144 (28.9)
     Undergraduate 356 (25.3) 244 (26.9) 112 (22.5)
     Graduate 153 (10.9) 104 (11.5) 49 ( 9.8)
BMI (mean (SD)) 26.21 (5.85) 25.92 (5.54) 26.73 (6.36)
Endometriosis: ever (%) 95 ( 6.8) 50 ( 5.5) 45 ( 9.0)
HRT: ever (%) 450 (32.0) 282 (31.1) 168 (33.7)
Duration of OC use: (%):
     0 280 (19.9) 172 (18.9) 108 (21.7)
     >>0-2 years 253 (18.0) 158 (17.4) 95 (19.1)
     2-10 years 533 (37.9) 336 (37.0) 197 (39.6)
     10+ years 340 (24.2) 242 (26.7) 98 (19.7)
Ancestry (%):
     French Canadian 948 (67.4) 609 (67.1) 339 (68.1)
     Other European 333 (23.7) 217 (23.9) 116 (23.3)
     Other/mixed 125 ( 8.9) 82 ( 9.0) 43 ( 8.6)
Smoking (%):
     Never 628 (44.7) 426 (46.9) 202 (40.6)
     >>0 to 15 packyears 379 (27.0) 237 (26.1) 142 (28.5)
     >>15 packyears 399 (28.4) 245 (27.0) 154 (30.9)
Alcohol: ever (%) 1,022 (72.7) 672 (74.0) 350 (70.3)
Aspirin: regular use (%) 215 (15.3) 147 (16.2) 68 (13.7)
Otherthan aspirin*: yes (%) 381 (27.1) 250 (27.5) 131 (26.3)
Notes: Otherthan aspirin means regular use of na-nsaids or acetaminophen.

H.2 Diagnostic checking

Table 14 presents the covariate balance: SMD evaluation in controls and in untreated individuals before and after IPTW and matching weighting (d1=d2=0.2d_{1}=d_{2}=0.2). Figure 8 shows the propensity score overlap for mRRT weighting: comparison between the treated controls and untreated controls before and after weighting for IPTW and matching, and between untreated controls and untreated cases before and after matching. Figure 9 presents the propensity score overlap for mRR weighting: comparison between the treated controls and untreated controls before and after IPTW weighting, between untreated cases and untreated controls, and between treated cases and treated controls. Figure 10 presents the propensity score overlap using IPTW with machine learning: comparison between the treated controls and untreated controls before and after IPTW weighting for mRRT and for mRR, between untreated cases and untreated controls, and between treated cases and treated controls. Table 15 presents the diagnostic checks of the covariate balance for matching under different values of d1d_{1} and d2d_{2} in the PROVAQ study. We selected (d1=d2=0.2d_{1}=d_{2}=0.2) for the final analysis because this choice successfully matched all cases who did not regularly use aspirin during the second stage of matching and yielded the best overall covariate balance among the specifications examined.

Table 14: Diagnostic checks of the covariate balance: SMD evaluation in controls and in untreated individuals before and after IPTW and matching weighting (d1=d2=0.2d_{1}=d_{2}=0.2) in the PROVAQ study.
Variable In controls In untreated individuals
Unweighted For mRRT For mRR Unweighted For mRRT
IPTW IPTW_SL Matching IPTW IPTW_SL Matching
Age 0.934 0.019 0.078 0.008 0.040 0.191 0.049 0.103
Education:
Less HS 0.355 0.015 0.094 0.040 0.008 0.080 0.059 0.030
HS 0.073 0.005 0.137 0.019 0.026 0.022 0.146 0.135
College 0.036 0.009 0.090 0.036 0.041 0.007 0.019 0.006
Undergraduate 0.326 0.019 0.079 0.006 0.046 0.096 0.143 0.129
Graduate 0.004 0.016 0.051 0.018 0.034 0.092 0.023 0.023
BMI 0.387 0.041 0.118 0.021 0.032 0.160 0.184 0.161
Endometriosis: ever 0.187 0.063 0.037 0.002 0.033 0.029 0.172 0.170
HRT: ever 0.331 0.035 0.004 0.002 0.043 0.051 0.058 0.032
Duration of OC use:
0 0.201 0.006 0.055 0.011 0.125 0.098 0.055 0.035
>>0-2 years 0.030 0.005 0.023 0.018 0.074 0.060 0.036 0.032
2-10 years 0.060 0.004 0.127 0.009 0.005 0.030 0.067 0.067
10+ years 0.298 0.007 0.117 0.017 0.049 0.185 0.157 0.136
Ancestry:
French Canadian 0.148 0.006 0.096 0.014 0.018 0.004 0.041 0.033
Other European 0.100 0.009 0.123 0.002 0.048 0.005 0.031 0.028
Other/mixed 0.097 0.027 0.034 0.022 0.111 0.014 0.022 0.013
Smoking:
Never 0.032 0.018 0.003 0.003 0.000 0.025 0.159 0.144
>>0 to 15 packyears 0.140 0.013 0.055 0.018 0.092 0.016 0.070 0.068
>>15 packyears 0.167 0.031 0.046 0.013 0.097 0.044 0.105 0.090
Alcohol: ever 0.033 0.035 0.063 0.019 0.168 0.084 0.038 0.042
Otherthan aspirin:yes 0.394 0.043 0.086 0.018 0.016 0.106 0.007 0.015
Figure 8: Diagnostic checks of the propensity score overlap for mRRT in the PROVAQ study: comparison between the treated controls and untreated controls before and after weighting for IPTW and matching (d1=d2=0.2d_{1}=d_{2}=0.2), and between untreated controls and untreated cases before and after matching.
Figure 9: Diagnostic checks of the propensity score overlap for mRR in the PROVAQ study: comparison between the treated controls and untreated controls before and after IPTW weighting, between untreated cases and untreated controls, and between treated cases and treated controls.
Figure 10: Diagnostic checks of the propensity score overlap with machine learning in the PROVAQ study: comparison between the treated controls and untreated controls before and after IPTW weighting for mRRT and for mRR, between untreated cases and untreated controls, and between treated cases and treated controls.
Table 15: Diagnostic checks of the covariate balance for matching under different values of d1d_{1} and d2d_{2} in the PROVAQ study: SMD evaluation in controls and in untreated individuals before and after matching weighting.
Variable In controls In untreated individuals
Unweighted d1d_{1} Unweighted d2d_{2}
0.2 0.16 0.12 0.08 0.04 0.2 0.16 0.12 0.08 0.04
Age 0.934 0.008 0.005 0.007 0.026 0.000 0.049 0.103 0.105 0.111 0.112 0.117
Education:
     Less HS 0.355 0.040 0.051 0.064 0.066 0.080 0.059 0.030 0.026 0.020 0.027 0.024
     HS 0.073 0.019 0.019 0.019 0.021 0.028 0.146 0.135 0.135 0.145 0.138 0.145
     College 0.035 0.036 0.035 0.039 0.038 0.034 0.019 0.006 0.004 0.003 0.003 0.007
     Undergraduate 0.326 0.006 0.015 0.022 0.027 0.032 0.143 0.129 0.130 0.138 0.142 0.124
     Graduate 0.004 0.018 0.023 0.027 0.027 0.058 0.023 0.023 0.021 0.020 0.020 0.037
BMI 0.387 0.021 0.018 0.034 0.046 0.037 0.184 0.161 0.162 0.165 0.164 0.162
Endometriosis: ever 0.187 0.002 0.001 0.001 0.002 0.024 0.172 0.170 0.176 0.173 0.178 0.194
Everhrt: ever 0.331 0.002 0.008 0.021 0.035 0.070 0.058 0.032 0.031 0.036 0.035 0.066
Duration of OC use:
     0 0.201 0.011 0.007 0.019 0.018 0.005 0.055 0.035 0.034 0.036 0.028 0.042
     >>0-2 years 0.030 0.018 0.018 0.052 0.039 0.069 0.036 0.032 0.032 0.029 0.012 0.004
     2-10 years 0.060 0.008 0.006 0.009 0.009 0.010 0.067 0.067 0.068 0.069 0.069 0.075
     10+ years 0.298 0.017 0.018 0.019 0.029 0.049 0.157 0.136 0.135 0.136 0.115 0.119
Ancestry:
     French Canadian 0.148 0.014 0.021 0.026 0.029 0.050 0.041 0.033 0.039 0.050 0.051 0.061
     Other European 0.100 0.002 0.009 0.014 0.014 0.038 0.031 0.028 0.031 0.041 0.040 0.040
     Other/mixed 0.097 0.022 0.023 0.023 0.029 0.026 0.022 0.013 0.018 0.022 0.024 0.039
Smoking:
     Never 0.032 0.003 0.003 0.010 0.015 0.006 0.159 0.144 0.148 0.147 0.140 0.167
     >>0 to 15 packyears 0.140 0.018 0.015 0.013 0.001 0.031 0.070 0.068 0.068 0.068 0.061 0.076
     >>15 packyears 0.167 0.013 0.016 0.022 0.017 0.021 0.105 0.090 0.094 0.092 0.091 0.107
Alcohol: ever 0.033 0.019 0.014 0.027 0.045 0.060 0.038 0.042 0.040 0.032 0.022 0.018
Otherthan aspirin: yes 0.394 0.018 0.030 0.035 0.024 0.050 0.007 0.015 0.012 0.007 0.002 0.001
Unmatched rate (%) - 0 0 0 0 0 - 0 0 0.23 0.47 2.09

H.3 Results for mRR estimation under three truncation intervals

Table 16 presents the estimated mRR using IPTW and one-step doubly robust estimator under three truncation intervals in the PROVAQ study. IPTW_SL and OS_SL denote estimators in which nuisance functions were estimated using machine learning via Super Learner (SL.glm, SL.gam, SL.glmnet, SL.randomForest), where the subscripts 0.001{0.001}, 0.01{0.01}, and 0.05{0.05} indicate the truncation intervals [0.001, 0.999], [0.01, 0.99], and [0.05, 0.95], respectively.

Table 16: Estimated mRR using IPTW and one-step (OS) doubly robust estimator under three truncation intervals in the PROVAQ study. BS SE: Mean bootstrap-estimated standard error.
Method Estimate BS SE 95% CI
IPTW 0.771 0.289 [0.550, 1.627]
IPTW_SL0.001 0.716 0.125 [0.467, 0.942]
IPTW_SL0.01 0.716 0.125 [0.475, 0.953]
IPTW_SL0.05 0.714 0.116 [0.460, 0.897]
OS 0.781 0.315 [0.506, 1.634]
OS_SL0.001 0.674 0.617 [0.082, 2.782]
OS_SL0.01 0.674 0.347 [0.238, 1.641]
OS_SL0.05 0.718 0.202 [0.597, 1.404]