% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estpw_s4_precali.R
\name{precal_cumulative_order}
\alias{precal_cumulative_order}
\title{Cumulative precalibration across multiple probability samples}
\usage{
precal_cumulative_order(sp_raw, sp_new, weight, sp_order)
}
\arguments{
\item{sp_raw}{A list of data frames (raw reference samples).}

\item{sp_new}{A list of data frames (working reference samples) with the same
structure as \code{sp_raw}. Calibrated weights are written back in place.}

\item{weight}{A list of weight column name strings, one per sample.}

\item{sp_order}{\code{"size"} to process largest sample first; otherwise
the original list order is used.}
}
\value{
A list with components \code{sp_new}, \code{total_vector},
  \code{log_messages}, and \code{order_used}.
}
\description{
Performs a cumulative precalibration across multiple probability samples by
sequentially calibrating each sample's weights to align with the marginal
totals of the previous samples. Called internally by \code{est_pw()}.
}
\keyword{internal}
