powered by
Wrapper function for the randomization scheme in the trial.
randomize(block_size = 2, randomization_ratio = c(1, 1), .data = NULL)
integer. Block size for the complete randomization in a block.
vector. The randomization allocation for control to treatment.
NULL. This should not be changed by the user.
a list with randomization details (block size and ratio).
# NOT RUN { randomize(block_size = 100, randomization_ratio = c(2, 3)) randomize(block_size = 10, randomization_ratio = c(1, 4)) # }
Run the code above in your browser using DataLab