% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pwmean_s4_dispatch.R
\name{dispatch_estimator}
\alias{dispatch_estimator}
\title{Dispatch the estimator across domains}
\usage{
dispatch_estimator(build, yz_data)
}
\arguments{
\item{build}{A `pw_fit` object returned by the build step.}

\item{yz_data}{A list returned by `process_na_yz()`, containing
`Y`, `w`, `X`, and `domain`.}
}
\value{
A list with components:

- `type`: either `"single"` or `"multi"`.
- `labels`: character vector of domain labels.
- `estimates`: a list of per-domain results, each with `mean` and `variance`.
}
\description{
Determines the domain mode (overall, binary, or factor) from
`yz_data` and calls `dispatch_estimator_one_domain()` for each domain,
returning a unified result list.
}
\keyword{internal}
