disjunctive | R Documentation |
Transforms a categorical variable into a matrix of indicators. The values of the categorical variable are integer numbers (positive or negative).
disjunctive(strata)
strata |
vector of integer numbers. |
balancedstratification
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.