Compute single n \choose m randomization

Description

Returns vector of length n with exactly m 1s and n-m 0s

Usage

1
rand(n, m)

Arguments

n

total number of subjects

m

number assigned to treatment in experiment

Value

vector of length n with exactly m 1s and n-m 0s

Author(s)

Joseph Rigdon jrigdon@bios.unc.edu


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.