Sampling algorithm for BSD
bsdRand(N, mti, K = 2)
N
: integer for the total sample size of the trial.mti
: maximum tolerated imbalance in patient numbers during the trial.K
: number of treatment groups (e.g. K=2 if we compare one experimental against one control treatment).A vector with the allocation sequence for a clinical trial. It will contain a zero (resp. 1) at position i
, when patient i
is allocated to treatment A (resp. B).
J. F. Soares and C. F. Jeff Wu (1983) Some Restricted Randomization Rules in Sequential Designs. Comm. in Stat., 12, 2017-34.
Useful links