Wrapper function for the randomization scheme in the trial.
randomize(block_size = 2, randomization_ratio = c(1, 1), .data = NULL)
block_size | integer. Block size for the complete randomization in a block. |
---|---|
randomization_ratio | vector. The randomization allocation for control to treatment. |
.data | NULL. This should not be changed by the user. |
A list with randomization details (block size and ratio).
#> $block #> [1] 100 #> #> $rand_ratio #> [1] 2 3 #>#> $block #> [1] 10 #> #> $rand_ratio #> [1] 1 4 #>