Creates randomization matrix of assignments for given number of units and
permutations.Returns matrix with unique randomized permutations.
Usage
create_randomization_matrix(units, n, block = NULL)
Value
Matrix with unique randomized permutations
Arguments
units
Number of units in dataset
n
Number of permutations
block
Numeric vector with length equal to "units"
indicating block assignments for each unit (optional)
Details
Note, if the number of specified permutations exceeds the maximum number
of unique permutations, the matrix returned will contain the
maximum number of permutations.