Skip to contents

Resamples respondents with replacement within each birth cohort and recomputes the estimator; useful when the sampling variability of the composition weights matters.

Usage

cdd_bootstrap(
  data,
  outcome,
  onset,
  wave,
  R = 100,
  conf = 0.95,
  year = "year",
  age = "age",
  weight = "weight",
  ...
)

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.

onset

Onset year of the shock. Pre-shock waves are those strictly before it.

wave

The treated survey wave (year) whose respondents are the treated sample.

R

Number of bootstrap replicates.

conf

Confidence level for intervals.

year, age, weight

Names of the survey-year, age, and survey-weight columns.

...

Further arguments passed to cdd().

Value

The point estimates from cdd() with se_boot, lower_boot, higher_boot added.