powered by
Create a short summary report of the aspects of the randomisation list, which could be used for quality control.
# S3 method for randolist summary(object, ...)
object of class randolistsum, which is a list with elements
n_rando: total number of randomisations
n_rando
n_blocks: maximum number of blocks
n_blocks
block_sizes: table of block sizes
block_sizes
arms: table of arms
arms
ratio: randomisation ratio (character)
ratio
stratified: logical
stratified
stratavars: names of stratifying variables (character)
stratavars
stratavars_tabs: tabulation of arms by each stratifcation variable
stratavars_tabs
strata: names of each individual stratum
strata
stratum_tabs: list with an element for each strata with n_rando, n_blocks, block_sizes, arms and ratio.
stratum_tabs
randolist object
additional arguments (currently unused)
r <- randolist(20) print(summary(r)) r2 <- randolist(20, strata = list(sex = c("M", "F"))) print(summary(r2)) # NOTE: explicitly printing isn't technically necessary
Run the code above in your browser using DataLab