% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survey_design.R
\name{setup_survey_design}
\alias{setup_survey_design}
\title{Set up survey designs for STEPS data (one per Step)}
\usage{
setup_survey_design(data)
}
\arguments{
\item{data}{A data frame (typically from \code{\link[=clean_steps_data]{clean_steps_data()}}).}
}
\value{
A list of class \code{"steps_designs"} with three
\link[survey:svydesign]{survey::svydesign} objects (step1, step2, step3).
}
\description{
Creates up to three survey design objects — one per WHO STEPS Step —
each using the appropriate step-specific weight column
(\code{wt_step1}, \code{wt_step2}, \code{wt_step3}).
}
\details{
The returned object is a list of class \code{"steps_designs"} with elements
\verb{$step1}, \verb{$step2}, \verb{$step3}.  For backward compatibility it can also
be used directly as a single design (it delegates to \verb{$step1}).

The function handles five design cases per step:
\enumerate{
\item Full complex design: weights + strata + clusters
\item Weights + clusters, no strata
\item Weights + strata, no clusters
\item Weights only
\item Unweighted (simple random sampling)
}

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