Construct a matrix of binary variables for calibration
Construct a matrix of binary variables for calibration of sample weights according to known marginal population totals.
calibVars(x)
x |
a vector that can be interpreted as factor, or a matrix or
|
A matrix of binary variables that indicate membership to the corresponding factor levels.
Andreas Alfons
data(eusilc) # default method aux <- calibVars(eusilc$rb090) head(aux) # data.frame method aux <- calibVars(eusilc[, c("db040", "rb090")]) head(aux)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.