Represents the randomization procedure Randomized Truncated Binomial Design.
rtbdPar(N, rb = N, groups = LETTERS[1:2], filledBlock =FALSE)
Arguments
N: integer for the total sample size of the trial.
rb: block lengths of the blocks that can be selected equiprobable at random.
groups: character vector of labels for the different treatments.
filledBlock: logical whether the last block should be filled or not.
Returns
S4 object of the class rtbdPar.
Details
Fix the possible random block lengths rb and the sample size of the trial N. Afterwards, one block length is randomly selected of the random block lengths. In this block a fair coin is tossed for the patient assignments until half of the patients have been assigned to one of the treatment arms. Afterwards, the block is filled with the other treatment. This procedure is repeated until N patients are assigned.
References
W. F. Rosenberger and J. M. Lachin (2002) Randomization in Clinical Trials. Wiley.