When a hospital patient carrying a resistant bacterium is treated quickly, the benefit does not stay with that patient. Fewer organisms move along the chain of transfers between wards, nursing homes and other hospitals, so patients who never received the treatment are also protected. Retrospective cohort studies, which analyze existing claims or health records instead of running a trial, normally assume each patient's outcome depends only on their own treatment. That assumption hides this spillover. The causal-inference methods that relax it share a second, quieter assumption: every connection between patients carries influence the same way. In practice that is false. A transfer from an intensive care unit to a long-term care facility does not carry infection risk at the same rate as the reverse transfer, or as an outpatient visit.
We propose to replace the usual "count of treated neighbors" with an exposure built from a small, directed, typed transmission model. Each patient's exposure is the estimated probability that infection reaches them from treated versus untreated infectious sources, computed along the actual transfer graph. Edge strengths differ by the types of facilities at each end and need not be symmetric. These two numbers then feed into a standard network propensity-score and doubly robust analysis. The method has to show it can recover direct and spillover effects in settings where the existing homogeneous-exposure estimators are biased. It also has to show that it does not lose to a much simpler typed-neighbor-count regression.
Core Claim
In retrospective cohorts where the outcome is contagious and units are joined by directed, typed contacts, much of the spillover that existing estimators either miss or absorb as variance can be captured by a low-dimensional exposure. That exposure is a reachability probability under a multitype transmission matrix: a table $T_{cd}$ giving the chance that infection passes along one edge from a type-$c$ node to a type-$d$ node, borrowed from the bond-percolation formalism of Heterogeneous bond percolation on multitype networks with an application to epidemic dynamics.
Concretely, let $I^{u}$ and $I^{t}$ be the sets of untreated and treated infectious index patients in a time window, and let $c(i)$ be the facility or ward type of node $i$. We write $r_i^{u}$ for the probability that node $i$ is reached from $I^{u}$ within $H$ transfer steps, computed by the message-passing recursion
$$ r_i^{u} = 1 - \prod_{j \in \mathcal{N}^{-}(i)} \left(1 - T_{c(j)c(i)}\, r_j^{u}\right), $$
where $\mathcal{N}^{-}(i)$ is the set of nodes with a recorded transfer into $i$, and the seed nodes in $I^{u}$ have $r^{u}=1$. The quantity $r_i^{t}$ is defined the same way with seeds in $I^{t}$ and a separate matrix $T^{t}$. The pair $(r_i^{u}, r_i^{t})$ is the exposure. The spillover effect is the change in a patient's outcome when reach shifts from untreated to treated sources, holding the patient's own treatment and covariates fixed.
What is new is not the doubly robust machinery, which we reuse. It is that the exposure mapping is heterogeneous, directed, multi-hop and estimated from the cohort itself, rather than being a fixed homogeneous summary.
Where this sits in prior work
Five lines of work motivate and constrain the design.
The network causal-inference papers supply the estimators and show that ignoring interference is costly.
- Neighborhood Adaptive Estimators for Causal Inference under Network Interference selects the interference radius with a Lepski-type search over a tree of exposure configurations. It finds effects reaching distance two and beyond in the school experiment of Paluck et al. (2016). However, it assumes additive effects and treats every edge the same.
- HNCI: High-Dimensional Network Causal Inference groups nodes into discrete clusters with identical linear interference coefficients and gives confidence sets for the neighborhood depth. Its edges are also undirected and untyped.
- Estimating Causal Effects under Network Interference with Bayesian Generalized Propensity Scores builds joint individual and neighborhood propensity scores with spline outcome models. It fixes a homogeneous one-hop exposure.
We keep their estimators. We change only the input those estimators receive, the exposure, making it typed, directed and multi-hop.
Two further papers bound what is feasible.
- Causal Inference Under Interference And Network Uncertainty shows that pooling interaction parameters across the population sharply reduces variance. Its learned sparse network cut bias from about 0.06 under the empty graph to about 0.006. It relies on partial interference within independent blocks and on symmetric ties, so it cannot represent a statewide transfer network.
- Causal Inference under Interference and Model Uncertainty proves that when the direct and spillover effects have the same sign, assuming independence overestimates the average effect. Its analysis is restricted to linear models with one uniform interference strength.
Together these set the central tension we have to handle. Pooling buys variance reduction. Heterogeneity buys correct mechanism. Our answer is to pool along a learned, coarse type partition with $M$ types, rather than either per-pair parameters or a single shared one.
The epidemic-dynamics literature supplies the mechanism.
- Adaptive Epidemic Dynamics in Networks: Thresholds and Control shows that whether an outbreak dies out depends on network structure through the largest eigenvalue, not on a scalar rate alone.
- Allard et al. give the multitype matrix $T$, and they note that exact analysis becomes intractable as the number of types grows.
We avoid that intractability by never solving for infinite-graph thresholds. We only propagate reach probabilities on the observed finite graph for a bounded number of steps.
Finally, CALYPSO: Forecasting and Analyzing MRSA Infection Patterns with Community and Healthcare Transmission Dynamics is the closest existing work. It fits a hybrid neural-mechanistic model to Virginia all-payer claims with inter-facility transfers and simulates facility-level interventions. Its simulations show strong spillover: targeting five hubs averted over 6,190 cases. However, CALYPSO is a forecaster. Its counterfactuals are model outputs, with no confounding adjustment, no identification argument and no confidence intervals on patient-level direct versus spillover effects. We use the same kind of data and the same intuition that transfer hubs matter. We put that intuition inside a deconfounded estimator whose validity does not rest on the simulator being right.
Research Program
Graph and units. We first build a directed, time-stamped transfer graph from a retrospective cohort. Nodes are patient-stays, typed by facility class: intensive care unit, general ward, long-term care facility, and community or outpatient. An edge records that patient-stay $j$ preceded patient-stay $i$ in the same unit within an overlap window, or that a patient was transferred from $j$'s unit to $i$'s.
Treatment and outcome. Treatment is a patient-level action recoverable from records, such as anti-MRSA therapy or decolonization within 48 hours of an MRSA diagnosis. The outcome is incident MRSA diagnosis in a later window.
Estimating the transmission matrices. We fit $T$ and $T^{t}$ on one fold of the data by maximizing the likelihood of observed incident diagnoses under the reach recursion. The type partition starts at the full facility classes, and type pairs are fused greedily. We choose the number of types $M$ by cross-fitted likelihood, so the data decide how much heterogeneity to keep. This directly addresses the open question in the research file of how much structure an observational cohort can support before variance explodes.
Causal estimation. On the other fold, we compute $(r^{u}, r^{t})$ and plug them into the generalized-propensity doubly robust estimator. We then swap folds. The main theoretical step is to show that the estimator remains consistent when $T$ is estimated rather than known. Our argument will follow the cross-fitting logic used for nuisance functions in doubly robust estimation. We will also characterize the bias when the type partition is too coarse: it should scale with the within-type spread of true edge transmissibilities.
Diagnostic. A secondary output is a diagnostic that compares spillover estimates under $M=1$ with estimates under the selected $M$. It flags when a homogeneous analysis would have fallen into the overestimation trap identified by Bhattacharya-adjacent work.
Baselines
Naive reference. The do-nothing reference is classical independent-unit propensity score matching on patient covariates. This is the design used in Long-Term Survival in Men With High Grade Prostate Cancer: A Comparison Between Conservative Treatment, Radiation Therapy and Radical Prostatectomy—A Propensity Scoring Approach, which is what a typical retrospective cohort paper would run. It estimates only a direct effect. Beating it means lower bias on the direct effect, plus recovering a spillover effect it cannot represent at all.
Strongest homogeneous-exposure competitors. The strongest existing methods are the neighborhood-adaptive estimator and Bayesian generalized propensity scores, both run on the same transfer graph with edges treated as undirected and untyped.
- For the neighborhood-adaptive estimator, the cited paper reports approximately 95% confidence-interval coverage in simulations on preferential-attachment graphs.
- For Bayesian generalized propensity scores, no numeric result is reported on Lacuna beyond good credible-interval coverage on Add Health.
We also include HNCI's grouped linear estimator. For the strongest existing reported effect of network-aware modeling, the figure we cite is Bhattacharya et al.'s bias of about 0.006 for a learned sparse network versus about 0.06 for the empty graph. That figure comes from block-structured synthetic data, so it is a reference for scale, not a directly comparable score.
Fairness of comparison. All methods receive the same patient covariates and the same graph. Each gets a matched hyperparameter search of 50 configurations on the same training folds, and all use identical cross-fitting splits. Beating these baselines means lower root-mean-square error and nominal 95% coverage for the spillover effect in the semi-synthetic settings with asymmetric $T$. In the homogeneous settings, the requirement is no loss of coverage and an interval width within 10% of the best baseline.
Ablations. Two ablations isolate the key ingredient. The first forces $M=1$ while keeping direction and multi-hop reach, which tests whether heterogeneity matters. The second keeps the typed $T$ but symmetrizes it, which tests whether direction matters.
Why not just…?
Why not just assume patients are independent, as nearly every retrospective cohort does? Because the outcome here is contagious, independence is false by construction. Causal Inference under Interference and Model Uncertainty proves this produces systematic overestimation when direct and spillover effects share a sign, which is the expected case for infection control. The semi-synthetic experiments measure the size of that bias directly on a real transfer graph.
Why not just use the existing network propensity or neighborhood-adaptive estimators on the transfer graph? They are the most likely winners if transfer edges are in fact roughly homogeneous. We do not argue this away. The ablation with $M=1$ is close to what they assume, and if the selected $M$ is 1 on real data, the honest conclusion is that their estimators suffice. Where they should fail is when, for example, long-term-care-to-ICU transmission is several times ward-to-ward transmission. In that case a one-hop untyped count mixes a strong and a weak channel and misweights both.
Why not just add facility-type indicators for neighbors to a regression, i.e. typed neighbor counts at each hop with a penalty? This is the most serious threat. With four types and two hops it adds only a few dozen features, and a lasso may approximate the reach probabilities well. Our bet is that the transmission parameterization wins as path length and number of types grow, because its parameter count stays at $M^2$ while typed path counts grow with $M^{H}$. It also respects saturation: being reached twice is not twice the risk. We include this regression as a full baseline across a grid of $M$ and $H$. If it matches us everywhere, the contribution reduces to the diagnostic, and we will say so.
Why not just simulate counterfactuals with CALYPSO's fitted model? Its counterfactuals inherit whatever the simulator gets wrong, and it does no confounding adjustment for why some patients were treated. The file notes that 3% noise in facility data degraded its predictions significantly. Our estimator stays consistent if either the propensity model or the outcome model is right, even when the transmission model is only approximate.
Proposed Experiments
Semi-synthetic test on the Virginia transfer graph. The primary test is semi-synthetic, using the Virginia All-Payer Claims Database transfer structure used by CALYPSO (or, if access fails, ward-level transfer sequences assembled from MIMIC-IV via An Extensive Data Processing Pipeline for MIMIC-IV). We keep the real graph, real covariates and a confounded treatment model fitted to real treatment patterns. We then simulate outcomes from known typed transmission matrices, varying asymmetry, number of types, hop depth and spillover magnitude, and including a homogeneous control condition.
- Metrics are bias, root-mean-square error and 95% interval coverage for the direct and spillover effects.
- We also report whether the cross-fitted choice of $M$ recovers the true number of types.
- Finite-size behavior near the outbreak threshold is checked explicitly by scaling transmission so the graph's leading eigenvalue sits just below and just above the critical value. This is where asymptotic theory is least trustworthy.
Real-outcome check on the Paluck school experiment. The decisive real-data check uses the Paluck et al. school experiment as analyzed by the neighborhood-adaptive paper. Because treatment there was randomized, the full-sample estimate serves as a reference. We construct deliberately confounded observational subsamples by dropping treated students according to covariates. Each method then tries to recover the randomized estimate from the confounded subsample. Student-network ties are less typed than hospital transfers, so this tests no-harm and confounding handling rather than heterogeneity. We repeat the analysis on Add Health and on the Glasgow cohort, where HNCI reported a significant effect only once two-hop neighbors were included, to check that our method recovers the same qualitative conclusions.
Applied analysis on the claims data. Finally, on the claims data with its real outcomes, we report direct and spillover estimates of early anti-MRSA treatment. Alongside them we report the $M=1$ versus selected-$M$ diagnostic and a sensitivity analysis for unmeasured confounding, since documented-covariate balancing cannot rule out undocumented severity.
What would count as failure. The idea fails if the penalized typed-count regression matches it across the semi-synthetic grid, or if the selected $M$ collapses to one on real data. Either outcome would itself be informative for how retrospective infection studies should be analyzed.
References
- Heterogeneous bond percolation on multitype networks with an application to epidemic dynamics
- Neighborhood Adaptive Estimators for Causal Inference under Network Interference
- HNCI: High-Dimensional Network Causal Inference
- Estimating Causal Effects under Network Interference with Bayesian Generalized Propensity Scores
- Causal Inference Under Interference And Network Uncertainty
- Causal Inference under Interference and Model Uncertainty
- Adaptive Epidemic Dynamics in Networks: Thresholds and Control
- CALYPSO: Forecasting and Analyzing MRSA Infection Patterns with Community and Healthcare Transmission Dynamics
- Long-Term Survival in Men With High Grade Prostate Cancer: A Comparison Between Conservative Treatment, Radiation Therapy and Radical Prostatectomy—A Propensity Scoring Approach
- An Extensive Data Processing Pipeline for MIMIC-IV