View source: R/create_randomization_matrix.R
create_randomization_matrix | R Documentation |
Creates randomization matrix of assignments for given number of units and permutations.Returns matrix with unique randomized permutations.
create_randomization_matrix(units, n, block = NULL)
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) |
Note, if the number of specified permutations exceeds the maximum number of unique permutations, the matrix returned will contain the maximum number of permutations.
Matrix with unique randomized permutations
create_randomization_matrix(14,128,rep(1:7, each = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.