Skip to contents

A tiny synthetic dataset mimicking key categorical structures often present in MICS/WFP microdata (gender, region, age bucket) with a binary outcome and a true response propensity. Intended for examples, tests, and grid vignettes.

Usage

mics_toy

Format

A data frame with 2000 rows and 6 variables:

id

Row id

gender

Male/Female

region

Region A/B/C

age_bucket_5way

Five age buckets

fcs_insuff_flag

Binary outcome

pi_true

True response propensity in (0,1)

Examples

data(mics_toy)
head(mics_toy)
#>   id gender region age_bucket_5way fcs_insuff_flag   pi_true
#> 1  1   Male      B           40-54               0 0.1643189
#> 2  2   Male      C           25-29               1 0.1479348
#> 3  3 Female      A           18-24               1 0.2218282
#> 4  4   Male      A           30-39               0 0.1927832
#> 5  5   Male      B           40-54               1 0.1653075
#> 6  6   Male      B           40-54               1 0.2206449