A simple simulation helper that mimics an RDD/quota process: each wave, draw a simple random sample from remaining units and keep observed respondents up to per-stratum quotas proportional to population shares.
Arguments
- pop
data.frame Population with at least an
idcolumn, thestratacolumns, and optionallypi_true(ground-truth response propensity in (0,1)).- strata
character() Names of columns forming the stratum label.
- outcome
character(1) Name of binary outcome column.
- init
integer Initial wave sample size.
- wave
integer Subsequent wave sample size.
- budget
integer Total target respondents; stop once reached (or cap at 20 waves).
- quota_buffer
numeric Non-negative buffer to inflate per-stratum quotas.