Learn R Programming

nonprobsampling (version 0.1.0)

multi_raking_block_cols: Map each reference-sample block to its column indices in Xc

Description

Map each reference-sample block to its column indices in Xc

Usage

multi_raking_block_cols(Xc, Xp_list, label = "Multi_Calibration")

Value

A list of integer vectors, one per element of `Xp_list`, giving the column positions in `Xc` that correspond to the columns of each `Xp_list[[j]]`.

Arguments

Xc

Numeric design matrix for the nonprobability sample, with named columns.

Xp_list

List of reference-sample design matrices, each with named columns that are a subset of `colnames(Xc)`.

label

Character scalar used as a prefix in error messages.