After a policy is implemented it may be suspended and then resumed, and the local economic conditions that influence policy choices keep changing as well. In 2026, Oliver Dukes and colleagues proposed in a preprint that this kind of difference-in-differences problem be handled with marginal structural nested mean models: comparisons are constructed from the policy and covariate history available at each period, while the variables that need to be adjusted for are kept separate from the variables one wants to use to explain differences in effect. [1]
Covariates are also affected by earlier policy
Suppose a researcher is interested in the effect of minimum wage policy on county unemployment rates. A county's poverty rate may influence the next policy adjustment and may also be related to changes in the unemployment rate; the earlier minimum wage policy may in turn have changed the poverty rate. The same poverty rate is therefore both a variable that follows the earlier policy and information that has to be taken into account before the next policy decision. [1]
The analysis needs to preserve the time order: follow the same set of counties continuously, recording the covariates before each period's policy decision, the earlier policy history, and the outcome in each period. Looking only at the poverty rate when the study begins throws away the changes that happen later; treating every year's poverty rate as an ordinary regression control does not automatically deliver the long-run policy effect one is after either.
State the policy paths to be compared first
One basic quantity the paper uses is the "blip effect". For units that actually received treatment in a given period and have a specified history of past policy and characteristics, two hypothetical paths are compared: on the first, the unit receives one treatment in this period and no treatment afterward; on the second, it goes untreated from this period onward. The difference between the mean outcomes of the two paths at some later time point is the blip effect of the last treatment in this period. [1]
Units in the observed data may still go on to receive treatment later. The paper's identification method brings the blip effects of subsequent treatments into the adjustment and then works back to the effect of an earlier treatment on later outcomes. In this way, successive changes in policy can each be represented in the model, without attributing everything that happens later to the initial treatment. [1]
If the research question is what difference there is between "implementing continuously from this period on" and "never implementing from this period on", the estimand and the conditional parallel trends assumption have to be switched to the ones that correspond to the sustained strategy. The paper's general-strategy version allows effects of this kind to be estimated even if some units in the observed data later switched the policy off. First initiation, a single-period blip, and sustained implementation answer different questions. [1][2]
How comparison units are found in each period
The method's core assumption is called "sequential conditional parallel trends". In a given period, first consider the covariate history up to that period and the earlier policy history; for units that share these histories, assume that those who actually received treatment in the period and those who did not would have had the same mean change in outcomes at each later stage had they all gone untreated from that period onward. What is compared is the change under hypothetical paths; the two groups are not required to have had the same outcome levels to begin with. [1]

Figure 1 | The single-world intervention graph (SWIG) envisaged in the paper: given the observed covariate history, treatment and the future counterfactual outcome increments satisfy the separation relations specified in the graph. It depicts one hypothesized structure under which conditional parallel trends holds. Source: Dukes et al. (2026), Figure 1, CC BY 4.0. License
This comparison distinguishes units by whether they are treated in the current period and does not need "never treated in the future" as a condition for selecting controls. Future policy choices may be influenced by future economic conditions, and those economic conditions are in turn related to outcome trends; selecting controls on their policy status over the whole subsequent period could change the population being compared. [1]
The comparison also needs support in the data: under the policy and covariate histories of interest, there must be a chance of observing the reference treatment status. For example, to compare treatment with no treatment in the current period, there need to be units with the relevant history for which no treatment in the current period can occur. [1]
Keeping adjustment variables separate from the variables that explain effect differences
The improvement brought by marginal structural nested mean models is that researchers can adjust the comparison using a fairly rich set of variable histories yet choose only some of them to describe differences in effect. For example, an analysis can adjust for population and area characteristics while focusing its reporting on how the policy effect varies with the unemployment rate. The other adjustment variables still take part in estimation; when the effect corresponding to a given unemployment rate is reported, the model averages over the distribution of these variables in the corresponding treated population. [1]
Researchers still need to specify a model for the relationship between the chosen effect modifiers, the past treatment history, and the policy effect. Choosing fewer variables to present heterogeneity makes the model easier to interpret and also reduces the burden of specifying an effect relationship separately for a large number of variables. [1]
For estimation, the paper puts two kinds of auxiliary models into the same set of estimating equations: one describes the probability of receiving treatment in each period given the history, and the other describes the change in outcomes under the reference treatment status. The authors construct doubly robust estimators: under the paper's identification and effect-model conditions, the estimates remain consistent when one of the two sets of auxiliary models is correctly specified. [1]
The paper also gives a cross-fitting procedure: split the study units into groups, fit the auxiliary models on the remaining groups, and solve the effect estimating equations on the held-out group; after rotating the held-out group, combine the results in proportion to group size. This lets researchers use more flexible machine learning methods in the auxiliary models. [1]
The Medicaid expansion example: what differences in effect go with the unemployment rate
The authors use the expansion of Medicaid, the US public health insurance program, as an illustration, examining changes in the uninsured rate among low-income adults in the counties of states that expanded in 2014 or 2015. The study focuses on how the effect differs with the county unemployment rate in the year before expansion, and uses population, the Black and Hispanic shares of the population, an urban-rural indicator, and the unemployment rate as adjustment information. [1]
In this empirical example, expansion continues once it has begun. The authors code the year of first expansion as 1 and the years after it as 0, in order to study the effects of expansions initiated at different times; the paper's treatment of policies that switch on and off comes from its more general model for time-varying strategies. [1]
Among counties in states that expanded in 2014, the model estimates that for a county with a 5% unemployment rate in the year before expansion, expansion lowered the uninsured rate at the 2015 outcome time point by 4.1 percentage points, with a 95% confidence interval from a reduction of 4.5 to a reduction of 3.7 percentage points; for a county with a 9% unemployment rate, the estimated reduction is 5.6 percentage points, with an interval from a reduction of 6.0 to a reduction of 5.2 percentage points. [1]
Counties in states that expanded in 2015 show a different relationship at the 2016 outcome time point: at a pre-expansion unemployment rate of 5%, the uninsured rate is estimated to fall by 3.3 percentage points; at an unemployment rate of 9%, it is estimated to fall by 2.0 percentage points. These figures describe conditional average effects distinguished by the pre-expansion unemployment rate. [1]
The paper also generated 1,000 simulated datasets, each containing 20,000 observations, to compare two ways of estimating: cross-fitting and parametric models. In that simulation setting, the coverage rates of the nominal 95% confidence intervals for the six effect-model parameters fell within the ranges 92%–96% and 93%–95% respectively. [1]
The paper's companion repository lists the R scripts for the simulations and the Medicaid empirical analysis, which researchers can use to study how the method is implemented in light of their own policy paths, covariate histories, and estimands. [3]
References
-
Oliver Dukes, Zach Shahn, James Robins, Andrea Rotnitzky. Difference-in-Differences for Heterogeneous Effects of General Treatment Strategies Accounting for Time-Varying Covariates. 2026-10-15.
-
Zach Shahn, Oliver Dukes, Meghana G. Shamsunder, David Richardson, Eric Tchetgen Tchetgen, James Robins. Structural Nested Mean Models Under Parallel Trends Assumptions. 2026-07-02.
-
Zach Shahn. marginal-structural-nested-mean-models-under-parallel-trends. No date given.
-
Research Methods · Rituals can be imitated; understanding cannot be faked
-
Compiled and published by the Scholay one-stop academic platform. If anything here infringes your rights, please let us know and it will be taken down.
-
Also published on EnterScholar, a community for scholars in the age of intelligence