Creates up to three survey design objects — one per WHO STEPS Step — each using the appropriate step-specific weight column (wt_step1, wt_step2, wt_step3).

setup_survey_design(data)

Arguments

data

A data frame (typically from clean_steps_data()).

Value

A list of class "steps_designs" with three survey::svydesign objects (step1, step2, step3).

Details

The returned object is a list of class "steps_designs" with elements $step1, $step2, $step3. For backward compatibility it can also be used directly as a single design (it delegates to $step1).

The function handles five design cases per step:

  1. Full complex design: weights + strata + clusters

  2. Weights + clusters, no strata

  3. Weights + strata, no clusters

  4. Weights only

  5. Unweighted (simple random sampling)

Weights are used as-is without trimming, consistent with the WHO official STEPS analysis scripts.