powered by
The fuction is used to generate treatment assignments based on blocked randomization.
blkrandomization(n, blocksize, block)
numeric number of subjects who will be randomized
numeric value of block size used for blocked randomization
vector of treatment blocks used for blocked randomization
trt a sequence of treatment assignments
# NOT RUN { blocksize <- 4 block <- c(1, 2, 3, 4) # treatment 1, 2, 3, 4 n <- 35 blkrandomization(n, blocksize, block) # }
Run the code above in your browser using DataLab