
Get balance of minimisation
balance.Rd
Get balance minimisation randomisation
Examples
# Minimisation to 3 groups, with two factors and a burnin of 15
mini <- minimise(patients, groups = 3, factors = c("sex", "stage"),
burnin = 15)
balance(mini)
#> Balance of factors (sex, stage) over ABC groups (1:1:1)
#> --------------------------------------------------------------------------------
#> | | F| M| | | I| II| III|
#> |:--|--:|--:| |:--|--:|--:|---:|
#> |A | 25| 24| |A | 28| 14| 7|
#> |B | 26| 24| |B | 30| 13| 7|
#> |C | 25| 26| |C | 29| 13| 9|
#>
#> Total imbalance: 4.464