Skip to contents

Estimation

The estimator, its print and summary methods.

cdd()
Cohort Discontinuity estimator
summary(<cdd>)
Summarize a cdd fit by outcome level
cdd_bootstrap()
Bootstrap standard errors (resampling within cohorts)

Choosing the extrapolant and window

Estimated mean squared error of the kernel mean and the local-linear fit for each number of pre-shock surveys, forward cross-validation, and the closed-form comparison in an idealized design.

cdd_bandwidth()
Estimated risk and bandwidth selection for the two extrapolants
cdd_cv()
Cross-validation over the number of pre-shock waves
cdd_risk_ideal()
Closed-form mean squared error and optimal window in the evenly spread design

Placebo and falsification tests

Placebo shocks, placebo adjustment, and the breakdown curvature.

cdd_placebo()
Placebo shocks
cdd_placebo_summary()
Placebo summary: dispersion of pseudo-effects
cdd_adjust()
Placebo adjustment for cohort-specific deviations
cdd_breakdown()
Breakdown curvature

Group and population summaries

Age groups, cohort groups followed across surveys, and the population average.

cdd_groups()
Age-group, cohort-aligned, and population-average effects
cdd_popavg()
Population-average effect
cdd_design()
Run the full design for one outcome

Plotting

plot_bandwidth()
Plot estimated mean squared error against the number of pre-shock surveys
plot_design()
Plot the design at the aggregate level
plot_dynamics()
Plot the dynamic profile: effect by elapsed time, one line per cohort group
plot_estimates()
Plot a set of estimates with sampling and bias-aware intervals
plot_profile()
Plot an age profile of effects
theme_cdd()
Minimal theme used by the package plots

Data

gss_culture
General Social Survey extract for cultural attitudes, 1972-2024
ces_police
Cooperative Election Study extract on attitudes toward the police, 2016-2022

Utilities

Kernels, survey weights of the kernel, and anything not listed above.

cdd_kernel()
Kernel functions over wave rank
wave_weights()
Wave weights from a kernel applied to wave rank