Which Small Subgroups Can a Longitudinal Causal Analysis Actually Speak For?

When doctors adjust treatment as a patient's condition changes, estimating what a treatment strategy does over time requires marginal structural models. These models reweight each patient by the inverse probability of the treatments they actually received, which builds a "pseudo-population" in which treatment no longer tracks prognosis. The weights come from a propensity model, a model that predicts which treatment a patient will get given their history. It is almost always fit once, globally. That becomes a problem when the question is whether a strategy helps or harms a small subgroup defined by several attributes at once, such as older Black women with a high genetic risk score. Prescribing in such a group can be nearly deterministic because of local practice patterns or access barriers. A global propensity model smooths this away. It assigns moderate probabilities and moderate weights exactly where the data contain almost no patients who were treated differently. The analysis then reports a confident subgroup effect that the data cannot support.

We propose to model how treatment assignment in each intersectional subgroup deviates from the global pattern, with shrinkage. From that model we compute how much usable information each subgroup retains after weighting across all time steps, and we let that quantity decide, subgroup by subgroup, among three outputs: an estimate of its own, a pooled estimate borrowed along known structure (including continuous genetic ancestry, calibrated so it does not create spurious effects), or an explicit "not resolvable from these data." The main product is a certificate that says which subgroup-level claims about a dynamic treatment strategy are statistically supportable, with intervals that keep their stated coverage. Better point estimates are secondary.

Core Claim

In longitudinal causal analyses, whether an intersectional subgroup's treatment effect can be resolved depends on its effective sample size after weighting. That quantity shrinks multiplicatively over time steps and collapses when within-subgroup assignment is near-deterministic. The raw count of patients in the subgroup says little about it. A global propensity model overestimates this effective size in precisely the subgroups that matter most, and the result is interval undercoverage and false reassurance about harm. For a subgroup $g$ with members $i$, longitudinal weights $w_i = \prod_{t=1}^{T} 1/\hat P(A_{it} \mid H_{it})$, and horizon $T$, the quantity we track is the Kish effective sample size,

$$ \mathrm{ESS}_g = \frac{\left(\sum_{i \in g} w_i\right)^2}{\sum_{i \in g} w_i^2}, $$

where $A_{it}$ is the treatment patient $i$ received at step $t$ and $H_{it}$ is their history up to that point. Because $w_i$ is a product over $T$ factors, mild per-step overlap problems compound, and $\mathrm{ESS}_g$ can fall far below the subgroup's raw count. We claim that $\mathrm{ESS}_g$ computed from a subgroup-aware propensity model tracks the oracle value, the one computed from the true assignment probabilities, much more closely than the same quantity computed from a global model. We further claim that plugging it into a size-adaptive interval restores nominal coverage in sparse subgroups.

Where This Sits

The weighting machinery is standard. Longitudinal inverse-probability weighting handles the dual role of intermediate covariates as both confounders and mediators, as described by Ghosheh et al. and in the treatment-adaptation setting of Lipkovich et al.. The case against simply conditioning on those covariates, which blocks mediated paths and can open collider paths, is laid out by Sharma et al.. Recurrent marginal structural networks (Lim, 2018) supply our strongest estimator, with recurrent propensity networks and an encoder-decoder outcome model. That work fits one homogeneous propensity model and assumes overlap throughout. Our work does not change the forecasting architecture. It changes how the propensities are shared across subgroups and what gets reported per subgroup.

The closest existing work on longitudinal subgroup effects is the penalized G-estimation of Jaman et al.. It selects sparse effect modifiers in a structural nested mean model and finds a sign reversal by cancer status in dialysis data. That paper motivates us: it shows subgroup effects can flip direction. It also differs from our work in two ways. It selects among a few individual modifiers rather than combinatorial intersections, and it does not ask whether a given subgroup has enough overlap to be estimated at all. The instrumental-variable marginal structural model of Michael et al. relaxes the no-unmeasured-confounding assumption. It addresses a different failure than ours, and we keep that assumption.

From the intersectional fairness literature we take two ideas and one hard constraint. The idea of a resolution limit comes from SAFT (Ferrara et al.): below roughly 30–50 individuals, observed disparities are indistinguishable from noise, and Bayesian intervals should replace large-sample Wald intervals. We carry this over to causal effects, replacing the raw count with weighted effective size. The parameter-sharing design comes from structured embeddings (Rudolph et al., S-EFE), where a global component plus hierarchically shrunk group deviations beat separate per-group models on held-out likelihood. We apply this to the propensity model rather than to embeddings.

The constraint comes from the epistemic-limits results of Monteiro Paes et al. and Cornelis et al.. They show that auditing a benefit for every subgroup is impossible once there are 17–19 binary attributes, even with every person on Earth, and that testing error exceeds 40% on MIMIC-III already. We take this result at face value. We do not try to audit every cell. We aim to say correctly which cells can be audited, and for the rest to fall back on bounds derived from marginal groups in the spirit of Molina and Loiseau, whose bounds are known to be loose. Subgroup-subset fairness in DRAF (Kim et al.) likewise restricts attention to subgroups above a support threshold. Our threshold is causal, based on effective size, rather than a raw support count.

Ancestry enters in two roles. First, it is a continuous pooling axis. Adjacent points on genetic ancestry should share assignment and effect parameters more than arbitrary categorical cells do. Second, it is a known hazard. Vargas et al. show that putting continuous ancestry alongside an uncalibrated polygenic risk score (a genetic risk predictor summed over many variants) produces spurious "statistical ghost" associations, and that regressing the score on ancestry and standardizing within ancestry bins removes them. We therefore separate what drives treatment from what defines the pooling geometry. The propensity model must include whatever the clinician acted on, which may be the raw score. The subgroup structure and effect-modification terms use the calibrated score. Jones et al. motivate why subgroup-specific rules matter clinically: ethnicity-specific thresholds doubled monogenic-diabetes detection from 8.8% to 16%. Static Mendelian randomization (Zhu et al.) is out of scope because it cannot represent adaptive regimes.

Research Program

The first component is a subgroup-aware propensity model. At each time step, the log-odds of treatment is a global recurrent function of history, plus a subgroup deviation. The deviation is built from main effects and low-order interactions of the categorical attributes, together with a smooth function of calibrated ancestry. Each term has a hierarchical shrinkage prior, so a cell with little data inherits the global policy and a cell with strong evidence of distinct prescribing keeps it. This keeps the architecture of Lim (2018) intact and changes only the propensity head.

The second component is a per-cell resolution certificate. From posterior draws of the propensity model we compute a distribution over $\mathrm{ESS}_g$ for every cell and every horizon. Each cell is then classified by rules fixed before seeing outcomes. A cell whose lower-quantile effective size clears a threshold gets its own doubly robust estimate. A cell whose effective size is inadequate but whose deviation posterior indicates similar assignment to a larger parent group is reported through the parent with an explicitly widened interval. A cell with near-zero effective size is reported as unresolvable, together with a marginal-derived bound.

The third component is the interval construction. We use a size-adaptive rule adapted from SAFT, driven by effective size instead of raw count.

The analysis question running through all three is whether global propensity errors concentrate in sparse, near-deterministic cells. We expect this because a global model's loss is dominated by large cells. The prediction is testable only where true propensities are known, which is why semi-synthetic benchmarks carry the main evidence.

Baselines

The naive reference point is a standard longitudinal inverse-probability-weighted marginal structural model with a global logistic propensity model and stabilized weights, with subgroup effects read off by fitting the marginal model within each cell and using sandwich intervals. This is what an applied analyst would do today.

The strongest existing method is the recurrent marginal structural network of Lim (2018), with its global propensity networks and subgroup effects obtained from decoder forecasts under planned regimes. The comparison point from the file is that on the tumor-growth simulator it improved one-step root mean squared error over standard marginal structural models by 80.9% and five-day forecasts under a counterfactual policy by 95%. These numbers concern population-level forecast error. For subgroup-level coverage or effective-size accuracy, I found no reported result on Lacuna for this or any method.

The third baseline is penalized G-estimation (Jaman et al.), with the intersectional attributes and their pairwise interactions offered as candidate effect modifiers. This is the strongest competitor that models heterogeneity directly.

The fourth baseline is a hierarchical Bayesian g-formula, an outcome-model-only approach with the same partial pooling structure we give the propensity model and no weights.

All methods get the same data splits, the same history features, the same hyperparameter search budget selected on validation factual loss, and the same compute. Our method counts as beating a baseline if it achieves nominal 90% coverage within Monte Carlo error in cells with raw count below 50, where baselines fall short, at no more than modest cost in interval width in large cells. It must also produce a lower false-reassurance rate, meaning the fraction of truly harmed cells declared not harmed.

Two ablations isolate the key ingredient. The first keeps our certificate and interval rule but computes $\mathrm{ESS}_g$ from the global propensity model. If this performs as well, subgroup-aware propensities are unnecessary. The second keeps subgroup-aware propensities but uses raw counts for the interval rule, which tests whether effective size matters.

Why not just…?

Why not just truncate or stabilize the weights? Truncation caps extreme weights. That lowers variance, but it silently replaces the estimand with a biased one in exactly the cells where overlap fails, and it leaves the global model's underestimate of within-cell determinism intact. Truncation acts on weights that are already too moderate. We include truncated-weight variants of both global baselines at standard percentile caps. The prediction is that they narrow intervals and worsen coverage in sparse near-deterministic cells. If they instead achieve coverage, the core claim fails.

Why not just fit a hierarchical outcome model and skip weighting? This is the real threat. With a correctly specified outcome model, partial pooling in a g-formula may match or beat us, because it needs no overlap at all, and it will extrapolate confidently into cells nobody was treated in. The experiments settle this by running the simulator under a correctly specified outcome model and under planted misspecification, specifically a cell-specific effect reversal like the one Jaman et al. found. If the g-formula keeps coverage under misspecification, we would recast the contribution as the certificate alone, attached to whichever estimator is used. The certificate is useful in either case, because it is the only part that says when extrapolation is happening.

Why not just stratify, or audit only marginal groups? Separate per-cell models fail under sparsity. Separate per-group embedding models lose to shared ones in S-EFE, and Singh documents unstable local regressions for rare profiles. Marginal auditing misses compounded effects at intersections, as the intersectional fairness survey documents. Both are included implicitly: stratification as the naive baseline's within-cell fit, and marginal auditing as the fallback bound. The planted reversal in a small intersection is designed so that marginal audits see no harm.

Why not just add ancestry principal components to the propensity model? For predicting treatment, collinearity between ancestry and a raw risk score need not bias predicted probabilities, so this may be harmless in the propensity model. Vargas et al. show the harm arises in effect estimation. We test this directly rather than assume it. One arm puts raw score plus ancestry into both the propensity model and the effect-modification terms, and another uses calibrated scores in the effect terms. We report whether spurious ancestry-by-treatment effects appear in the raw arm.

Proposed Experiments

The primary testbed is the tumor-growth pharmacokinetic simulator used by Lim (2018), with 10,000 training, 1,000 validation, and 1,000 test trajectories. We augment it with a set of binary attributes, swept from 4 to 12, plus a continuous ancestry coordinate and a simulated risk score whose mean shifts with ancestry. Treatment assignment follows the original confounding-by-indication rule plus planted cell-specific offsets. These make a controlled fraction of cells near-deterministic, and in some of them the offset depends on the raw risk score. True effects vary by cell, including sign reversals in a few small cells. Because counterfactuals are known, we can measure per-cell bias, 90% interval coverage, interval width, agreement between estimated and oracle $\mathrm{ESS}_g$, precision and recall of the "unresolvable" flag against the oracle, and false-reassurance rate. All metrics are reported as functions of raw cell count and of oracle effective size.

A second testbed is semi-synthetic MIMIC-III, the substrate used by Cornelis et al. and discussed by Ghosheh et al.. Real covariate histories and recorded demographics are kept, and treatment and outcome are simulated. This tests whether the effect holds under realistic, irregular covariate structure and realistic demographic imbalance. We will also report where our resolvable cells fall relative to the untestability regime Cornelis et al. identified on this dataset. A real-data demonstration, reported descriptively without claims of accuracy, is planned on the CHUM/CED dialysis cohort of Jaman et al. if access is granted. The goal there is to see which of their cancer-status subgroups, crossed with further attributes, the certificate deems resolvable.

Three checks are decisive. First, if the global-propensity ablation's $\mathrm{ESS}_g$ already tracks the oracle in near-deterministic sparse cells, the central mechanism is wrong. Second, if truncated global weights or the hierarchical g-formula reach nominal coverage in sparse cells under outcome misspecification, the weighting-side contribution is unnecessary and only the certificate survives. Third, if the fraction of cells certified as resolvable does not fall as the attribute count grows, in the direction the minimax results of Monteiro Paes et al. predict, the certificate is too permissive to trust.