Applies cdd() to pseudo-shocks at dates when no salient event occurred,
with the same settings as the main estimate, and returns the stacked
pseudo-effects. Each element of dates is a pair c(onset, wave).
Arguments
- data
A data frame of repeated cross-sections.
- outcome
Name of the outcome column. Categorical outcomes are expanded into one linear probability equation per level unless
continuous = TRUE.- dates
A list of
c(onset, wave)pairs.- ...
Further arguments passed to
cdd().
Examples
data(gss_culture)
pl <- cdd_placebo(gss_culture, "homosex", dates = list(c(1988, 1988), c(1989, 1989)),
H = 4, ages = c(30, 50), levels = 1)
pl[, c("onset", "wave", "age", "ate", "se")]
#> onset wave age ate se
#> 1 1988 1988 30 -0.01497366 0.04502709
#> 2 1988 1988 50 -0.01290362 0.05196538
#> 3 1989 1989 30 -0.02048604 0.04798298
#> 4 1989 1989 50 -0.08226652 0.05468452