Description Usage Arguments Value Examples
View source: R/blkrandomization.R
The fuction is used to generate treatment assignments based on blocked randomization.
1 | blkrandomization(n, blocksize, block)
|
n |
numeric number of subjects who will be randomized |
blocksize |
numeric value of block size used for blocked randomization |
block |
vector of treatment blocks used for blocked randomization |
trt a sequence of treatment assignments
1 2 3 4 | blocksize <- 4
block <- c(1, 2, 3, 4) # treatment 1, 2, 3, 4
n <- 35
blkrandomization(n, blocksize, block)
|
[1] 1 3 2 4 3 2 4 1 3 1 4 2 1 2 3 4 4 1 2 3 3 1 4 2 1 2 3 4 2 4 3 1 1 3 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.