Skip to contents

The design rests on one assumption that cannot be verified directly: without the shock, the cohort trend at a fixed age would have continued smoothly into the exposed survey. This article collects the checks that probe this assumption. For each check it states what is being tested, how to run it, and how to read the result.

Check What it asks Function
Placebo shocks Does the design find effects at dates when nothing happened? cdd_placebo(), cdd_placebo_summary()
Rank-based p-value Is the estimate at the real date extreme among the placebo estimates? computed from cdd_popavg()
Placebo adjustment Does the conclusion survive removing each cohort’s usual deviation? cdd_adjust()
Permutation test Is the effect distinguishable from zero without a normal approximation? cdd(permutation = TRUE)
Negative-control outcomes Do outcomes that the shock should not affect stay put? cdd() on other outcomes
Predetermined covariates Did the composition of the sample change at the shock? cdd() with a covariate as the outcome
Breakdown curvature How much curvature in the cohort trend would overturn the conclusion? cdd_breakdown()
library(cohortDD)
library(ggplot2)
data(gss_culture)

ctl <- c("factor(race)", "factor(sex)", "educ")

The running example is the 1992-93 shock with outcome homosex, level 1 (“always wrong”), onset 1992, and exposed survey 1993. Most of these checks need several pre-shock surveys, which the George Floyd example of the replication article does not have, so this article uses a General Social Survey example. The replication article shows the one check that example allows, a null-date estimate on a related item.

Placebo shocks

What it tests. A placebo shock is a date at which no relevant event occurred. Running the design at such a date should give an estimate near zero, because the cohort trend should simply continue. Placebo estimates that are far from zero indicate that the extrapolation fails in ordinary times, through curvature in the cohort trend or through year-to-year disturbances that move one survey relative to its neighbours.

How to run it. cdd_placebo() applies cdd() at each placebo date. Each date is a pair c(onset, wave). The pair c(1990, 1990) treats the 1990 survey as if it were the first exposed survey and uses the surveys before 1990 as pre-shock surveys. All other arguments are passed to cdd() and should equal those of the main estimate, so that the placebo estimates describe the same estimator.

The placebo dates before 1992 have fewer pre-shock surveys behind them than the real shock has. With six surveys before 1992, the dates 1989, 1990, and 1991 each have at least three earlier surveys. The placebo analysis therefore uses H = 3, and the main estimate is recomputed with H = 3 for the comparison.

main <- cdd(gss_culture, "homosex", onset = 1992, wave = 1993, H = 3, b = 5,
            order = 1, ages = 20:70, levels = 1, controls = ctl)

dates <- list(c(1989, 1989), c(1990, 1990), c(1991, 1991))
pl <- cdd_placebo(gss_culture, "homosex", dates = dates, H = 3, b = 5,
                  order = 1, ages = 20:70, levels = 1, controls = ctl)

head(pl[, c("onset", "wave", "age", "cohort", "ate", "se")])
#>   onset wave age cohort       ate     se
#> 1  1989 1989  20   1969  0.023964 0.0662
#> 2  1989 1989  21   1968  0.027737 0.0615
#> 3  1989 1989  22   1967  0.027716 0.0588
#> 4  1989 1989  23   1966  0.010421 0.0551
#> 5  1989 1989  24   1965  0.001670 0.0511
#> 6  1989 1989  25   1964 -0.000802 0.0523

The result stacks the output of cdd() for the placebo dates and adds the columns onset and wave. A date that does not have H earlier surveys is skipped with a warning.

How to read it. Plot the placebo profiles next to the real one. plot_profile() accepts the placebo output and can facet by wave.

both <- rbind(pl, cbind(as.data.frame(main), onset = 1992, wave = 1993))
both$wave <- factor(both$wave, labels = c("Placebo 1989", "Placebo 1990", "Placebo 1991", "Real shock, 1993"))
plot_profile(both, level = "1", scale = 100, honest = FALSE, facet = "wave",
             ylab = "Estimate (percentage points)")

Age profiles of the estimated effect at three placebo dates and at the real exposed survey of 1993.

At the placebo dates the profiles wander around zero and the confidence bands mostly include it. At the real date the profile lies below zero over most of the age range. The comparison is informative about size as well as sign: an estimate at the real date is credible when it lies outside the range of what the design produces at placebo dates.

cdd_placebo_summary() reduces the placebo estimates to a few numbers.

cdd_placebo_summary(pl)
#>   level   n     sd mean_abs  q025  q975
#> 1     1 153 0.0626   0.0508 -0.11 0.131

c(mean_main = mean(main$ate), mean_abs_main = mean(abs(main$ate)))
#>     mean_main mean_abs_main 
#>        -0.149         0.149

n is the number of placebo estimates (ages times dates), sd is their standard deviation, mean_abs is their mean absolute value, and q025 and q975 are their 2.5 and 97.5 percent quantiles. Two readings are useful. The standard deviation of the placebo estimates should be close to the typical standard error reported by cdd(). If it is much larger, the standard errors understate the true variability of the design. The main estimates should lie outside the interval from q025 to q975 if the effect is to be distinguished from ordinary fluctuations.

A rank-based p-value

What it tests. The null hypothesis is that the real date is no different from the placebo dates. Under this hypothesis the estimate at the real date is as likely as any placebo estimate to be the largest in absolute value. The p-value is the rank of the real estimate among all estimates: one plus the number of placebo dates whose estimate is at least as large in absolute value as the real one, divided by one plus the number of placebo dates. The test does not use the standard errors, so it remains valid when they are too small.

How to run it. A single number per date is needed, and the population-average effect from cdd_popavg() is the natural choice. The smallest p-value the test can produce is one over the number of placebo dates plus one, for example 0.25 with three dates, so the test needs many dates. Three pre-shock dates are too few. The code below adds the surveys from 2000 onward as placebo dates. This treats those years as ordinary times for this outcome, which is an assumption the analyst has to defend, because a shock with lasting or growing effects can leave a trend in later surveys.

pop <- function(onset, wave) {
  cdd_popavg(gss_culture, "homosex", onset = onset, wave = wave, lo = 20, hi = 70,
             H = 3, order = 1, levels = 1, controls = ctl)[, c("onset", "wave", "ate", "se")]
}

real <- pop(1992, 1993)
years <- c(1989, 1990, 1991, 2000, 2002, 2004, 2006, 2008, 2010)
plac <- do.call(rbind, lapply(years, function(y) pop(y, y)))

rbind(real, plac)
#>    onset wave      ate     se
#> 1   1992 1993 -0.16454 0.0394
#> 2   1989 1989 -0.04011 0.0259
#> 3   1990 1990  0.03791 0.0306
#> 4   1991 1991  0.02520 0.0309
#> 5   2000 2000  0.02949 0.0261
#> 6   2002 2002 -0.00381 0.0299
#> 7   2004 2004  0.05178 0.0349
#> 8   2006 2006 -0.05375 0.0323
#> 9   2008 2008 -0.02604 0.0297
#> 10  2010 2010 -0.01049 0.0328

p_rank <- (1 + sum(abs(plac$ate) >= abs(real$ate))) / (1 + nrow(plac))
p_rank
#> [1] 0.1

How to read it. The p-value is the share of dates, counting the real one, at which the estimate is at least as large in absolute value as at the real date. With nine placebo dates the smallest possible value is 0.1, and the real date attains it when its estimate is the largest of all. The placebo estimates are not independent, because neighbouring dates share pre-shock surveys, so the p-value is approximate.

allp <- rbind(cbind(real, kind = "Real shock"), cbind(plac, kind = "Placebo"))
ggplot(allp, aes(wave, 100 * ate, shape = kind)) +
  geom_hline(yintercept = 0, linetype = "dotted") +
  geom_errorbar(aes(ymin = 100 * (ate - 1.96 * se), ymax = 100 * (ate + 1.96 * se)), width = 0) +
  geom_point(size = 2.2, fill = "white") +
  scale_shape_manual(values = c("Placebo" = 21, "Real shock" = 16)) +
  labs(x = "Exposed survey (real or placebo)", y = "Estimate (percentage points)", shape = NULL) +
  theme_cdd()

Population-average estimates at the placebo dates and at the real date, with confidence intervals.

Placebo adjustment

What it tests. Some cohorts may sit persistently above or below the trend of their neighbours for reasons unrelated to the shock. Such a deviation travels with the cohort from survey to survey, so it appears in the placebo estimates for that cohort as well as in the main estimate. The placebo adjustment subtracts it. The check asks whether the conclusion survives this correction.

How to run it. cdd_adjust() takes the main fit and the placebo output. For each cohort it computes the mean placebo estimate across the placebo dates at which that cohort was estimated, subtracts it from the main estimate, and adds the variance of that mean to the variance of the main estimate.

adj <- cdd_adjust(main, pl)
adj[adj$age %in% c(25, 35, 45, 55, 65),
    c("age", "cohort", "ate", "se", "delta", "n_p", "ate_adj", "se_adj")]
#>    age cohort     ate     se    delta n_p ate_adj se_adj
#> 6   25   1968 -0.2095 0.0821  0.01966   3  -0.229 0.0910
#> 16  35   1958 -0.0784 0.0758  0.00761   3  -0.086 0.0822
#> 26  45   1948 -0.1930 0.0795 -0.00653   3  -0.186 0.0865
#> 36  55   1938 -0.1993 0.0822 -0.00820   3  -0.191 0.0893
#> 46  65   1928 -0.1442 0.0896  0.01529   3  -0.159 0.0966

delta is the mean placebo estimate for the cohort, n_p is the number of placebo dates that contribute to it, ate_adj is ate - delta, and se_adj is the adjusted standard error, which is never smaller than se. lower_adj and higher_adj give the adjusted confidence interval. Matching is by birth cohort and not by age. A cohort that falls outside the age range at every placebo date has no adjustment and gets NA. Here these are the youngest cohorts, who were under 20 at the placebo dates.

How to read it.

prof <- rbind(
  data.frame(age = adj$age, level = adj$level, ate = adj$ate, lower = adj$lower,
             higher = adj$higher, version = "Unadjusted"),
  data.frame(age = adj$age, level = adj$level, ate = adj$ate_adj, lower = adj$lower_adj,
             higher = adj$higher_adj, version = "Placebo-adjusted")
)
prof$version <- factor(prof$version, levels = c("Unadjusted", "Placebo-adjusted"))
plot_profile(prof, level = "1", scale = 100, honest = FALSE, facet = "version",
             ylab = "Effect (percentage points)")

Unadjusted and placebo-adjusted age profiles.

If the adjusted profile is close to the unadjusted one, persistent cohort deviations do not explain the estimate. A large change at particular ages points to cohorts that were already unusual before the shock. The adjusted intervals are wider because the correction is itself estimated.

Permutation test

What it tests. The sharp null hypothesis says that the shock changed no respondent’s outcome. If it holds, and the fitted cohort trend is correct, the deviations of the exposed respondents from the extrapolated trend come from the same distribution as the residuals of the pre-shock respondents. The permutation test compares the two sets of deviations without relying on a normal approximation, which matters when the number of exposed respondents in an age band is small or the outcome is rare.

How to run it. Set permutation = TRUE in cdd(). R is the number of random relabellings.

set.seed(1)
fit_perm <- cdd(gss_culture, "homosex", onset = 1992, wave = 1993, H = 5, b = 5,
                order = 1, ages = c(25, 45, 65), levels = 1,
                permutation = TRUE, R = 2000)
as.data.frame(fit_perm)[, c("age", "ate", "se", "lower", "higher",
                            "p_perm", "lower_perm", "higher_perm")]
#>   age     ate     se  lower  higher p_perm lower_perm higher_perm
#> 1  25 -0.1692 0.0595 -0.286 -0.0525 0.0005     -0.254     -0.0803
#> 2  45 -0.1481 0.0574 -0.261 -0.0356 0.0005     -0.218     -0.0703
#> 3  65 -0.0353 0.0693 -0.171  0.1005 0.4828     -0.123      0.0654

How to read it. p_perm is the two-sided permutation p-value: the share of relabellings in which the weighted mean difference is at least as large in absolute value as the observed one. With R relabellings it cannot be smaller than one over R plus one. lower_perm and higher_perm bound an interval obtained from the permutation distribution.

The test conditions on the fitted trend. It treats the extrapolated counterfactual as known and does not include the uncertainty in estimating it, which is the second term of the standard error. For this reason the permutation interval is narrower than the confidence interval from lower and higher, and the permutation p-value is smaller than a p-value based on se. Use it as a check on the distributional approximation for the exposed sample, and base conclusions on the confidence interval and the bias-aware interval.

Negative-control outcomes

What it tests. A negative-control outcome is an item that the shock should not have moved. If the design finds an effect on it at the date of the shock, something other than the shock changed between the pre-shock surveys and the exposed survey, for example the survey procedures, the composition of the sample, or the general political climate.

How to run it. Run the same specification on the control outcomes. The example uses four items that have no direct link to the gay-rights controversy and were asked in the same surveys: whether women are suited for politics (fepol), whether abortion should be available for any reason (abany), whether racial differences are due to discrimination (racdif1), and whether it is better for the man to work and the woman to tend the home (fefam). The choice of controls is a substantive judgment and should be made before looking at the results.

neg <- lapply(c("homosex", "fepol", "abany", "racdif1", "fefam"), function(v) {
  x <- cdd_popavg(gss_culture, v, onset = 1992, wave = 1993, lo = 20, hi = 70,
                  H = 5, order = 1, levels = 1, controls = ctl)
  data.frame(outcome = v, ate = x$ate, se = x$se, z = x$ate / x$se, n1 = x$n1)
})
do.call(rbind, neg)
#>   outcome      ate     se      z  n1
#> 1 homosex -0.11911 0.0278 -4.286 859
#> 2   fepol -0.00565 0.0261 -0.216 878
#> 3   abany  0.01869 0.0316  0.591 861
#> 4 racdif1  0.02681 0.0289  0.929 879
#> 5   fefam -0.02343 0.0157 -1.497 904

How to read it. The first row is the outcome of interest and the remaining rows are the controls. For each control, ate should be small relative to se. One control with a ratio near 2 in absolute value is not alarming when several are examined. A pattern of nonzero estimates across controls is a warning that the exposed survey differs from its predecessors for reasons other than the shock.

Predetermined covariates as outcomes

What it tests. Characteristics fixed before the shock, such as sex, race, and for most adults years of schooling, cannot be affected by it. If the design finds a jump in one of them, the respondents of the exposed survey differ in composition from what the cohort trend predicts, and the outcome estimate may reflect that difference. This is the analogue of the covariate continuity check in a regression discontinuity design.

How to run it. Use the covariate as the outcome, with continuous = TRUE for numeric or 0/1 variables, and leave controls and reweight empty so that nothing is adjusted away.

d <- gss_culture
d$female <- as.numeric(d$sex == 2)
d$white  <- as.numeric(d$race == 1)

cov <- lapply(c("female", "white", "educ"), function(v) {
  x <- cdd_popavg(d, v, onset = 1992, wave = 1993, lo = 20, hi = 70,
                  H = 5, order = 1, continuous = TRUE)
  data.frame(covariate = v, ate = x$ate, se = x$se, z = x$ate / x$se)
})
do.call(rbind, cov)
#>   covariate      ate     se      z
#> 1    female  0.00651 0.0273  0.238
#> 2     white -0.00900 0.0189 -0.475
#> 3      educ  0.21765 0.1728  1.260

How to read it. Each estimate should be small relative to its standard error. The estimates for female and white are differences in proportions and the estimate for educ is in years of schooling. A clear jump in a covariate is a reason to add it to controls, to reweight if it is fixed over the life course, or to both, and to report the outcome estimate with and without the adjustment. The same check can be run by age with cdd() to see whether composition shifts in a particular part of the age range.

Breakdown curvature

The breakdown curvature is the smallest bound M on the curvature of the cohort trend at which the bias-aware interval includes zero. It is described in The estimator and its inference and is listed here because it answers a falsification question: how far from linear would the cohort trend have to be for the estimate to be explained by extrapolation bias alone?

fit3 <- cdd(gss_culture, "homosex", onset = 1992, wave = 1993, H = 5, b = 5,
            order = 1, ages = c(25, 45, 65), levels = 1, controls = ctl)
as.data.frame(cdd_breakdown(fit3))[, c("age", "ate", "se", "bb", "curv", "M0")]
#>   age     ate     se   bb     curv      M0
#> 1  25 -0.1375 0.0588 15.6 0.001133 0.00141
#> 2  45 -0.1665 0.0533 15.5 0.000114 0.00399
#> 3  65 -0.0325 0.0680 16.5 0.000533 0.00000

Compare M0 with curv, the curvature estimated from the pre-shock surveys. An M0 well above curv means that the conclusion tolerates more curvature than the pre-shock period shows. An M0 of zero means that the confidence interval already includes zero.

Putting the checks together

No single check establishes the assumption. Each one rules out a different alternative explanation: placebo shocks and the rank-based p-value address ordinary fluctuations of the design, the placebo adjustment addresses persistent cohort deviations, negative controls address events that coincide with the shock, covariate checks address composition, and the breakdown curvature addresses nonlinearity of the cohort trend. An estimate that passes all of them is harder to attribute to anything other than the shock.