Learn R Programming

fpc (version 2.2-13)

randcmatrix: Random partition matrix

Description

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.

Usage

randcmatrix(n,cln,p)

Value

An n*cln-matrix.

Arguments

n

positive integer. Number of rows.

cln

positive integer. Number of columns.

p

positive integer. See above.

See Also

regmix

Examples

Run this code
set.seed(111)
randcmatrix(10,2,1)

Run the code above in your browser using DataLab