Wraps survey::svydesign() with automatic detection of standard IHS
weight, strata, and PSU columns from harmonised data.
Arguments
- data
A data.frame of harmonised IHS data.
- weight_col
Character. Column name for survey weights. If
NULL(default), auto-detected from standard IHS column names.- strata_col
Character. Column name for strata. If
NULL(default), auto-detected.- psu_col
Character. Column name for PSU/cluster. If
NULL(default), auto-detected.