powered by
Function for use in simulations, creating design matrix of categorical variables where each column is uniformly randomly distributed and independent.
UniformDesignMatrix(n, p, c)
A data frame of categorical (factor) variables.
Number of observations
Number of variables
Number of categories within each variable
x = UniformDesignMatrix(100, 10, 8)
Run the code above in your browser using DataLab