chooseMatrix {choplump} | R Documentation |
Create a choose(n,m)
by n matrix. The matrix has unique rows with m ones in each row and the rest zeros.
chooseMatrix(n, m)
n |
an integer |
m |
an integer<=n |
A matrix with choose(n,m) rows n columns. The matrix has unique rows with m ones in each row and the rest zeros.
Used for exact test method for choplump
M.P.Fay
chooseMatrix(5,2)