disjonctive {sampling} | R Documentation |
Transform a categorical variable into a matrix of indicators. The values of the categorical variable must be integer (positive or negative).
disjonctive(strat)
strat |
vector of integer numbers. |
# definition of the variable of stratification strat=c(-2,3,-2,3,4,4,4,-2,-2,3,4,0,0,0) # computation of the matrix disjonctive(strat)