Prepare Single CSB Indicator for MBG
Arguments
- dhs_kr
DHS Children's Recode (KR) dataset.
- gps_data
DHS GPS dataset with cluster coordinates.
- indicator
Single indicator name. Default: "public".
- csb_priority_method
Character, one of "all" (default), "first", "public", or "private". Controls how overlapping care-seeking records are resolved so each individual is assigned to at most one sector:
"all": Keep WHO methodology; overlaps allowed (csb_public and csb_private can both be 1 for the same child).
"first": Take the first recurring h32 source visited per child (alphabetical h32 order: h32a, h32b, ..., h32x). Mutually exclusive.
"public": If child sought any public/CHW care, classify as public; otherwise private if any private; otherwise none.
"private": If child sought any private care, classify as private; otherwise public if any public; otherwise none.
With non-"all" values, csb_public + csb_private + csb_none sums to 100%.
- survey_vars
Named list mapping DHS variable names.
- gps_vars
Named list for GPS variable mapping.
