Deprecated. Use ddid instead.
ddid2 is a legacy two-period wrapper for the Distributional
Difference-in-Differences estimator. The modern replacement
ddid uses a yname/gname/tname
interface and supports staggered treatment adoption natively.
ddid2(
formla,
xformla = NULL,
t,
tmin1,
tname,
data,
panel = TRUE,
dropalwaystreated = TRUE,
idname = NULL,
probs = seq(0.05, 0.95, 0.05),
iters = 100,
alp = 0.05,
method = "logit",
se = TRUE,
retEachIter = FALSE,
seedvec = NULL,
pl = FALSE,
cores = NULL,
biters = NULL,
cl = NULL
)QTE object.
formula of the form y ~ treat.
optional one-sided covariate formula.
post-treatment period.
pre-treatment period.
name of the time column.
data.frame.
logical; whether data are panel (must be TRUE).
logical; whether to drop always-treated units.
name of the unit id column.
quantile grid.
bootstrap iterations.
significance level.
propensity score estimation method ("logit").
logical; whether to compute bootstrap SEs.
logical; return per-iteration results.
optional vector of seeds for reproducible bootstrap.
logical; parallel bootstrap.
number of cores.
alias for iters; takes precedence if supplied.
alias for cores; takes precedence if supplied.
ddid