View source: R/randomization.R
rand_arm | R Documentation |
Generate block randomized arms
rand_arm(nsbj, ratio, arm_name = paste("arm", 1:length(ratio), sep = "_"))
nsbj |
an integer for total number of subjects to be randominzed |
ratio |
the allocation ratio with block size of |
arm_name |
a vector of characters for arms |
a vector of length nsbj
with randomized treatment arms
rand_arm(nsbj = 1, ratio = c(1, 1))
rand_arm(nsbj = 12, ratio = c(2, 2, 1))
rand_arm(nsbj = 4, ratio = c(1, 2, 0, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.