Learn R Programming

nonprobsampling (version 0.1.0)

check_input_multi: Validate inputs and build variable sets for multi-reference calibration

Description

Validate inputs and build variable sets for multi-reference calibration

Usage

check_input_multi(sc, sp_list, vars_list, wts_cols, verbose = FALSE)

Value

A list with components:

sc

The nonprobability sample data frame (unchanged).

sp_list

The reference sample list (unchanged).

vars_XC

Character vector: union of all per-sample variable sets, used to build the `sc` design matrix `Xc`.

xcol

List of character vectors: the variables contributed by each reference sample after removing variables already covered by earlier samples (no intercept).

wts_cols

Character vector of weight column names (unchanged).

log

Character vector of log messages describing the variable sets.

Arguments

sc

Data frame. The nonprobability sample.

sp_list

List of reference sample data frames.

vars_list

List of character vectors of predictor variable names shared between `sc` and each reference sample.

wts_cols

Character vector of survey-weight column names, one per element of `sp_list`.

verbose

Logical. If `TRUE`, variable-set messages are printed.