chooseMatrix {choplump}R Documentation

Create an (n choose m) by n matrix with unique rows.

Description

Create a choose(n,m) by n matrix. The matrix has unique rows with m ones in each row and the rest zeros.

Usage

chooseMatrix(n, m)

Arguments

n

an integer

m

an integer<=n

Value

A matrix with choose(n,m) rows n columns. The matrix has unique rows with m ones in each row and the rest zeros.

Note

Used for exact test method for choplump

Author(s)

M.P.Fay

Examples

chooseMatrix(5,2)

[Package choplump version 1.1.2 Index]