% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estpw_s5_multi_s3_matrix.R
\name{multi_matrix_construction}
\alias{multi_matrix_construction}
\title{Construct block design matrices for multi-reference calibration}
\usage{
multi_matrix_construction(vars_XC, sc, sp_list, xcol, wts_cols)
}
\arguments{
\item{vars_XC}{Character vector of all predictor variables (union across
reference samples), used to build the `sc` design matrix `Xc`.}

\item{sc}{Data frame. The nonprobability sample.}

\item{sp_list}{List of reference sample data frames.}

\item{xcol}{List of character vectors: the variables contributed by each
reference sample (as returned by `check_input_multi`).}

\item{wts_cols}{Character vector of survey-weight column names,
one per element of `sp_list`.}
}
\value{
A list with components:
  \item{Xc}{Numeric design matrix for `sc`, with intercept prepended,
    of dimension \eqn{n_c \times p}.}
  \item{Xp_list}{List of numeric design matrices for each reference sample.
    The first block includes an intercept column; subsequent blocks do not.}
  \item{wts_list}{List of numeric weight vectors, one per reference sample.}
}
\description{
Construct block design matrices for multi-reference calibration
}
\keyword{internal}
