% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pwmean_s5_naive.R
\name{naive_mean_one_domain}
\alias{naive_mean_one_domain}
\title{Compute the naive mean for one domain}
\usage{
naive_mean_one_domain(yvec, zvec = NULL)
}
\arguments{
\item{yvec}{Numeric or integer outcome vector of length \eqn{n}.}

\item{zvec}{Integer 0/1 domain indicator of length \eqn{n}, or NULL
(treated as all-ones, i.e., the overall mean).}
}
\value{
A list with components:

- `mean`: unweighted sample mean of `yvec` within the domain,
  or NA if the domain is empty.
- `variance`: estimated variance of the mean (\eqn{s^2/n}),
  or NA if fewer than two observations are available.
}
\description{
Computes the unweighted sample mean and its variance for observations
belonging to a single domain, identified by a 0/1 indicator vector.
}
\keyword{internal}
