calibVars: Construct a matrix of binary variables for calibration
Description
Construct a matrix of binary variables for calibration of sample weights
according to known marginal population totals. The following methods
are implemented:
calibVars.default(x)
calibVars.matrix(x)
calibVars.matrix(x)
calibVars.data.frame(x)
Usage
calibVars(x)
Arguments
x
a vector that can be interpreted as factor, or a matrix or
data.frame consisting of such variables.
Value
A matrix of binary variables that indicate membership to the
corresponding factor levels.