Skip to contents

Pools all respondents aged lo to hi into a single estimate (midpoint age with half-width (hi - lo)/2).

Usage

cdd_popavg(
  data,
  outcome,
  onset,
  wave = NULL,
  waves = wave,
  lo = 20,
  hi = 70,
  ...
)

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.

waves

Treated waves; defaults to wave.

lo, hi

Age range.

...

Further arguments passed to cdd().

Value

A data frame with one row per wave and level.