powered by
For use within regmix. Generates a random 0-1-matrix with n rows and cln columns so that every row contains exactly one one and every columns contains at least p+3 ones.
regmix
n
cln
p+3
randcmatrix(n,cln,p)
An n*cln-matrix.
n*cln
positive integer. Number of rows.
positive integer. Number of columns.
positive integer. See above.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en/
set.seed(111) randcmatrix(10,2,1)
Run the code above in your browser using DataLab