Tutorials › Causal Inference › Sensitivity Curves for Departures From Parallel Trends

Difference-in-Differences · Tutorial 603 of 972

Sensitivity Curves for Departures From Parallel Trends

Quantify how sensitive a DiD treatment-effect estimate is to plausible violations of parallel trends and identify when its sign or statistical conclusion changes.

Intermediate 10 min read

What You'll Learn

  • Define a trend-departure parameter on the scale and time contrast of a DiD estimate.
  • Derive the adjusted ATT estimate for a specified departure from parallel trends.
  • Calculate a sensitivity curve over a range of plausible trend violations.
  • Identify the departure at which an estimated effect changes sign.
  • Shift a confidence interval appropriately when treating a departure as fixed.
  • Distinguish sensitivity analysis from evidence that a particular trend departure occurred.

Why Examine Departures From Parallel Trends?

A difference-in-differences (DiD) estimate is often interpreted under a parallel-trends assumption: without treatment, the treated and comparison groups would have had the same average outcome change over the study interval. That assumption cannot usually be verified from observed post-treatment outcomes. Pre-treatment trends and other diagnostics can inform its plausibility, but they do not reveal exactly what the treated group’s untreated post-period trend would have been.

A sensitivity curve makes this uncertainty explicit. It asks how the estimated average treatment effect on the treated (ATT) would change if the treated group’s untreated trend differed from the comparison group’s trend by a specified amount. The result is not a new estimate of the unknown departure. It is a set of conditional estimates: one for each departure value considered.

Definition: Let \(\widehat{D}\) be the estimated DiD contrast, calculated as the treated group’s observed outcome change minus the comparison group’s observed outcome change. Define \(\delta\) as the treated group’s counterfactual untreated outcome change minus the comparison group’s untreated outcome change, on the same outcome scale and over the same time contrast. The sensitivity-adjusted estimate is $$ \widehat{ATT}(\delta)=\widehat{D}-\delta. $$ A positive \(\delta\) means that, even without treatment, the treated group would have improved more (or declined less) than the comparison group.

What the Adjustment Represents

Consider a two-group, two-period setting. Let \(Y_{T,pre}\) and \(Y_{T,post}\) denote average observed outcomes in the treated group before and after treatment, and let \(Y_{C,pre}\) and \(Y_{C,post}\) denote the corresponding comparison-group averages. The usual sample DiD contrast is

$$ \widehat{D}=(Y_{T,post}-Y_{T,pre})-(Y_{C,post}-Y_{C,pre}). $$

Suppose treatment does not affect the pre-period outcome (no anticipation), the comparison group is untreated over the contrast, and the observed group averages refer to comparable populations over time. Write \(\Delta Y_T(0)\) for the treated group’s counterfactual untreated change and \(\Delta Y_C(0)\) for the comparison group’s untreated change. The average treatment effect on the treated over the post period is the difference between the treated group’s observed post outcome and its counterfactual untreated post outcome. Consequently, the treated group’s observed change equals its untreated change plus the ATT. The comparison group’s observed change equals its untreated change. Subtracting gives the population relation

$$ D=ATT+\{\Delta Y_T(0)-\Delta Y_C(0)\}=ATT+\delta. $$

Rearranging yields \(ATT=D-\delta\), and replacing the population contrast with its sample estimate gives the sensitivity-adjusted estimate. Under exact parallel trends, \(\delta=0\), so the usual DiD estimate is recovered. If the treated group would have had a more favorable untreated trend, \(\delta>0\), the unadjusted DiD contrast overstates the ATT by that amount. If its untreated trend would have been less favorable, \(\delta<0\), the adjustment increases the estimated ATT.

The parameter must be expressed on the same scale as the DiD contrast. If the outcome is measured in days, \(\delta\) is a difference in changes measured in days. If the outcome is a rate per 1,000 people, \(\delta\) is in rate points per 1,000 people. With a pooled or repeated-period DiD contrast, define \(\delta\) for that exact contrast; the relevant departure is the difference in counterfactual changes after applying the same weights as the estimate.

Worked Example: Adjusting a DiD Estimate for One Trend Departure

Suppose a hypothetical program is introduced in one region. Average monthly clinic visits per 1,000 residents rise from 52 to 61 in the treated region, while they rise from 48 to 54 in the comparison region. Assume the groups and outcome are measured comparably in both periods, the comparison region is untreated, and there is no anticipation. Calculate the DiD estimate and then adjust it for a specified untreated trend departure of 1.2 visits per 1,000.

The treated group’s observed change is \(61-52=9\) visits per 1,000. The comparison group’s observed change is \(54-48=6\) visits per 1,000. Therefore,

$$ \widehat{D}=(61-52)-(54-48)=9-6=3 $$

The unadjusted DiD estimate is 3 additional monthly visits per 1,000 residents. Now suppose, as a sensitivity scenario, that without the program the treated region would have had an increase 1.2 visits per 1,000 greater than the comparison region. This is \(\delta=1.2\), so

$$ \widehat{ATT}(1.2)=3-1.2=1.8. $$

Under that specified departure, the estimated effect is 1.8 additional monthly visits per 1,000 residents. The calculation does not establish that the departure was 1.2; it shows what the estimate would be if that departure were the right value.

Reading and Plotting the Sensitivity Curve

For a fixed DiD estimate, the adjusted estimate is a straight-line function of \(\delta\). Its intercept is \(\widehat{D}\), and its slope is \(-1\): increasing the assumed departure by one outcome unit decreases the adjusted estimate by one outcome unit. Plot \(\delta\) on the horizontal axis and \(\widehat{ATT}(\delta)\) on the vertical axis. Mark a substantively plausible range of departures, and show the horizontal zero line to make sign changes easy to see.

The zero crossing solves \(\widehat{D}-\delta=0\), so it occurs at \(\delta=\widehat{D}\). For a positive unadjusted estimate, departures larger than the estimate produce a negative adjusted estimate; departures smaller than it produce a positive one. This is a tipping point for the sign of the point estimate, not necessarily for its statistical significance or practical importance.

Worked Example: Evaluating a Range of Plausible Departures

A hypothetical DiD analysis estimates a change of 4.5 percentage points in a treatment-related outcome. Suppose subject-matter reasoning motivates examining departures from \(-2\) to \(5\) percentage points. Compute adjusted estimates at selected values and locate the sign-change threshold.

Here \(\widehat{D}=4.5\), so the curve is \(\widehat{ATT}(\delta)=4.5-\delta\). For example, at \(\delta=-2\), the adjustment adds 2 points; at \(\delta=2\), it subtracts 2 points; and at \(\delta=5\), it subtracts 5 points.

Assumed departure \(\delta\) (percentage points)CalculationAdjusted estimate (percentage points)
-24.5 - (-2)6.5
04.5 - 04.5
24.5 - 22.5
4.54.5 - 4.50
54.5 - 5-0.5

To plot the curve, put the listed departure values on the horizontal axis and their adjusted estimates on the vertical axis, then connect the points with a straight line. The line crosses zero at \(\delta=4.5\) percentage points. Thus, within the considered range, the point estimate remains positive for departures below 4.5, is zero at 4.5, and becomes negative above 4.5. Whether a departure near 4.5 is plausible requires substantive knowledge; the arithmetic alone does not answer that question.

Adding Sampling Uncertainty

A sensitivity curve for point estimates does not show sampling uncertainty. If a confidence interval for the DiD contrast is available and a departure \(\delta\) is treated as fixed, the corresponding interval for the adjusted estimate is obtained by subtracting \(\delta\) from both endpoints. This is a translation of the interval, not a recalculation of its standard error. It relies on using the same sampling procedure and uncertainty estimate for the DiD contrast at each fixed departure.

For instance, with a large-sample normal approximation, a 95% confidence interval for the DiD contrast has the form \(\widehat{D}\pm1.96SE\). If inference uses another reference distribution or a cluster-robust method, use the interval from that method instead; the sensitivity adjustment still shifts both endpoints by \(-\delta\). The resulting interval is conditional on the chosen departure and does not account for uncertainty about which departure is appropriate.

Worked Example: How a Fixed Departure Changes an Interval

Suppose a hypothetical DiD estimate for hospital admissions is \(\widehat{D}=2.4\) admissions per 1,000 people, with \(SE=0.9\) admissions per 1,000. Assume a large-sample normal approximation is appropriate for this example. Calculate the 95% interval and examine it under a fixed departure of \(\delta=2\) admissions per 1,000.

The unadjusted interval is

$$ 2.4\pm1.96(0.9)=2.4\pm1.764=[0.636,\ 4.164]. $$

Both endpoints are in admissions per 1,000 people. Under \(\delta=2\), the adjusted estimate is \(2.4-2=0.4\) admissions per 1,000, and the interval shifts by subtracting 2 from each endpoint:

$$ [0.636-2,\ 4.164-2]=[-1.364,\ 2.164]. $$

The unadjusted interval excludes zero, whereas the interval conditional on \(\delta=2\) includes zero. This shows that the confidence-interval conclusion is sensitive to this specified departure. It does not mean there is a 95% probability that the fixed-departure parameter lies in the calculated interval, nor does it quantify uncertainty about \(\delta\).

Sign, Statistical, and Practical Tipping Points

Different conclusions can have different tipping points. The sign tipping point is where the adjusted point estimate reaches zero. For a positive estimate, a confidence interval’s lower endpoint may reach zero at a smaller departure. If the interval for \(\widehat{D}\) is \([L,U]\), the shifted interval is \([L-\delta,U-\delta]\). Its lower endpoint is zero when \(\delta=L\); for larger departures, that interval no longer lies entirely above zero. This statement concerns the chosen confidence-interval procedure and a fixed departure.

A practical threshold can be different again. If effects smaller than a specified meaningful magnitude are not considered substantively important, compare \(\widehat{ATT}(\delta)\) with that threshold across the curve. Statistical significance, effect direction, and practical importance are distinct criteria. A curve should therefore be interpreted against the question being asked, not only by whether it crosses zero.

A useful sensitivity analysis reports how the plausible departure range was chosen. The range might be informed by pre-treatment trend differences, subject-matter knowledge, or comparisons with outcome changes in relevant settings. Those sources can motivate scenarios, but a pre-treatment trend is not automatically the post-period counterfactual departure. Present the range as an assumption for sensitivity analysis, not as a measured fact.

Common Mistake: Treating the Curve as a Test of Parallel Trends

A common mistake is to see a sensitivity curve that remains positive over a chosen range and conclude that parallel trends has been demonstrated. That reasoning confuses robustness to specified departures with evidence that the actual departure is zero. The curve only reports what the estimate would be under each value supplied by the analyst. It cannot identify the unobserved counterfactual trend or determine which values are plausible without additional substantive reasoning.

A related mistake is to add \(\delta\) to the DiD estimate when \(\delta\) is defined as the treated group’s untreated change minus the comparison group’s untreated change. The observed contrast includes that trend difference as well as the treatment effect, so it must be removed: \(\widehat{ATT}(\delta)=\widehat{D}-\delta\). State the sign convention before interpreting the direction of an adjustment.

1
Compute the original contrast.
Calculate the DiD estimate using the intended outcome scale, groups, periods, and any pooling weights.
2
Define the departure.
Specify \(\delta\) as the treated-minus-comparison difference in untreated changes, in the units of that exact contrast.
3
Choose and justify scenarios.
Set a plausible range using substantive information, and label the range as an assumption rather than an observed quantity.
4
Calculate and display results.
For each scenario use \(\widehat{D}-\delta\), plot the adjusted estimates against \(\delta\), and optionally shift confidence limits by the same amount for fixed departures.
5
Describe the tipping points.
Report where the point estimate changes sign and, separately, where an interval or practical-effect conclusion changes.
Key takeaway: A sensitivity curve translates an assumed departure from parallel trends into an adjusted DiD estimate. It clarifies how large a departure must be to alter a conclusion, but the curve does not establish the true departure or verify the parallel-trends assumption.

Check Your Understanding

Use the sign convention that \(\delta\) is the treated group’s untreated change minus the comparison group’s untreated change.

  1. A DiD estimate is 3 outcome units. What is the adjusted estimate under \(\delta=0.8\), and what does the positive departure mean?
  2. If \(\widehat{D}=-2\), at what value of \(\delta\) does the adjusted point estimate equal zero?
  3. A confidence interval for \(\widehat{D}\) is \([1,5]\). What interval corresponds to the fixed departure \(\delta=2\)?
  4. Why does a sensitivity curve that stays positive over a selected range not prove parallel trends?
  5. Name one reason a departure parameter must use the same outcome scale and time contrast as the DiD estimate.
Clinical Biostats