disjunctive: Disjunctive combination

Description Usage Arguments See Also Examples

Description

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

Usage

1

Arguments

strata

vector of integer numbers.

See Also

balancedstratification

Examples

1
2
3
4
# 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 documentation built on May 30, 2017, 1:14 a.m.