Skip to contents

Create a short summary report of the aspects of the randomisation list, which could be used for quality control.

Usage

# S3 method for class 'randolist'
summary(object, ...)

Arguments

object

randolist object

...

additional arguments (currently unused)

Examples

r <- randolist(20)
print(summary(r))
#> ---- Randomisation list report ----
#> -- Overall
#> Total number of randomisations:  20 
#> Randomisation groups:  A : B 
#> Randomisation ratio: 1:1 
#> Randomisations to each arm:
#>  A  B 
#> 10 10 
#> Block sizes:
#> 4 6 
#> 2 2 

r2 <- randolist(20, strata = list(sex = c("M", "F")))
print(summary(r2))
#> ---- Randomisation list report ----
#> -- Overall
#> Total number of randomisations:  48 
#> Randomisation groups:  A : B 
#> Randomisation ratio: 1:1 
#> Randomisations to each arm:
#>  A  B 
#> 24 24 
#> Block sizes:
#> 2 4 6 
#> 1 4 5 
#> -- Stratifier level 
#> Randomisation list is stratified by variables sex 
#> -  1 
#> Randomisations per level of sex :
#>  M  F 
#> 24 24 
#> Balance per level of sex :   
#>      A  B
#>   M 12 12
#>   F 12 12
#> -- Stratum level 
#> 2 strata are defined:
#> 
#>  F  M 
#> 24 24 
#> -  F 
#> Number of randomisations:  24
#>  A  B 
#> 12 12 
#> Block sizes: 
#> 4 6 
#> 3 2 
#> -  M 
#> Number of randomisations:  24
#>  A  B 
#> 12 12 
#> Block sizes: 
#> 2 4 6 
#> 1 1 3 
#> [[1]]
#> 
#> 4 6 
#> 3 2 
#> 
#> [[2]]
#> 
#> 2 4 6 
#> 1 1 3 
#> 

# NOTE: explicitly printing isn't technically necessary