% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pwmean_s4_cali.R
\name{raking_estimate}
\alias{raking_estimate}
\title{Estimate step for raking-ratio calibration}
\usage{
raking_estimate(Y, Z, w, X, D, S_beta)
}
\arguments{
\item{Y}{Outcome vector for the nonprobability sample.}

\item{Z}{Domain indicator vector. Use `rep(1, length(Y))` for the
overall mean.}

\item{w}{Estimated pseudo-weights from the calibration build step.}

\item{X}{Calibration design matrix for the nonprobability sample.}

\item{D}{Design-based variance-covariance matrix of the estimated
auxiliary totals from the reference survey or surveys. For multiple
reference surveys, this is block diagonal.}

\item{S_beta}{Sensitivity matrix for the calibration estimating equations,
typically \code{t(w * X) \%*\% X} for raking-ratio calibration.}
}
\value{
A list with components `mean` and `variance`.
}
\description{
Computes the domain-specific pseudo-weighted Hájek mean and its
Taylor-linearized variance for the raking-ratio calibration estimator.
}
\keyword{internal}
