Rdocumentation
powered by
Learn R Programming
interferenceCI (version 1.1)
rand: Compute single $n \choose m$ randomization
Description
Returns vector of length $n$ with exactly $m$ 1s and $n-m$ 0s
Usage
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