powered by
This function transforms a categorical vector into a matrix of indicators.
disj(strata)
A vector of integers that represents the categories.
A matrix of indicators.
# NOT RUN { strata <- rep(c(1,2,3),each = 4) disj(strata) # }
Run the code above in your browser using DataLab