% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/suggest-ladder.R
\name{wf_suggest_ladder}
\alias{wf_suggest_ladder}
\title{Draft a post-stratification collapse ladder}
\usage{
wf_suggest_ladder(sample, target, dims, min_cell = 5)
}
\arguments{
\item{sample}{Sample data frame.}

\item{target}{A \code{wf_target} object.}

\item{dims}{A \code{wf_dims} object with explicit ordered levels for every
calibration dimension.}

\item{min_cell}{Minimum required unweighted sample support in every group.}
}
\value{
A \code{wf_ladder_draft} containing reviewable levels and a validated
\code{wf_collapse_ladder} in \verb{$ladder}.
}
\description{
Examines worst-group category support and proposes adjacent category merges
in the explicit level order declared by \code{\link[=wf_dims]{wf_dims()}}. The result is a draft
for review; no input is modified and no merge is applied automatically.
}
\examples{
data(wfc_example)
target <- wf_target_population(
  wfc_example$population,
  c(gender = "gender", age = "age"),
  "count",
  wfc_example$dims,
  by = "province"
)
wf_suggest_ladder(wfc_example$sample, target, wfc_example$dims, min_cell = 25)
}
