Learn R Programming

interferenceCI (version 1.1)

nchoosem: Compute randomization matrix

Description

Returns the $n \choose m$ row randomization matrix; uses combinations function in gtools

Usage

nchoosem(n, m)

Arguments

n
total number of subjects
m
number assigned to treatment in experiment

Value

matrix with $n \choose m$ rows of randomizations