calibVars: Construct a matrix of binary variables for calibration

Description Usage Arguments Value Author(s) See Also Examples

View source: R/calibVars.R

Description

Construct a matrix of binary variables for calibration of sample weights according to known marginal population totals. The following methods are implemented:

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)

Bernhard Meindl and Andreas Alfons

See Also

calibSample

Examples

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

simPop documentation built on May 30, 2017, 3:27 a.m.

Search within the simPop package
Search all R packages, documentation and source code