Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

disjunctive

Disjunctive combination


Description

Transforms a categorical variable into a matrix of indicators. The values of the categorical variable are integer numbers (positive or negative).

Usage

disjunctive(strata)

Arguments

strata

vector of integer numbers.

See Also

Examples

# definition of the variable of stratification
strata=c(-2,3,-2,3,4,4,4,-2,-2,3,4,0,0,0)
# computation of the matrix
disjunctive(strata)

sampling

Survey Sampling

v2.9
GPL (>= 2)
Authors
Yves Till<e9> <yves.tille@unine.ch>, Alina Matei <alina.matei@unine.ch>
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.