Learn R Programming

sampling (version 2.9)

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

balancedstratification

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab