calibVars: Construct a matrix of binary variables for calibration

Description Usage Arguments Value Author(s) See Also Examples

Description

Construct a matrix of binary variables for calibration of sample weights according to known marginal population totals.

Usage

1

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.

Author(s)

Andreas Alfons

See Also

calibWeights

Examples

1
2
3
4
5
6
7
data(eusilc)
# default method
aux <- calibVars(eusilc$rb090)
head(aux)
# data.frame method
aux <- calibVars(eusilc[, c("db040", "rb090")])
head(aux)

aalfons/laeken documentation built on May 10, 2019, 2:06 a.m.