Before committing to a randomisation plan (in terms of the number of strata,
block sizes etc) it can be useful to estimate the imbalance that might be
expected. This function simulates trials of a given sample size and returns
the imbalance that might be expected.
list of class checkplan with slots the same slots as input to the
function plus mean (mean imbalance), counts (counts of the imbalances) and
worst_case (randomisation results with the worst observed imbalance)
Arguments
n_rando
number of participants to randomise
n_strata
number of strata
arms
arms that will be randomised
blocksizes
number of each randomisation group per block (e.g. 1 = one of each arm per block,
2 = per of each arm per block)
n_sim
number of simulations
x
check_plan object
...
options passed to print.data.frame
Functions
print(checkplan): Print method for check_plan output