View source: R/simple_randomization.R
| simple_randomization | R Documentation |
Generate a simple random allocation schedule.
simple_randomization(n, groups, seed = NULL)
n |
Number of subjects. |
groups |
Character vector of treatment groups. |
seed |
Optional random seed. |
A tibble containing subject IDs and assigned groups.
simple_randomization(
n = 20,
groups = c("Control", "Treatment"),
seed = 123
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.