gbcdRand: Sampling algorithm for gbcd

Description Usage Arguments Value References

View source: R/gbcdPar.R


Sampling algorithm for gbcd


gbcdRand(N, rho, K = 2)



integer for the total sample size of the trial.


nonnegative parameter which my be adjusted according to how strongly it is desired to balance the experiment. If rho = 1, we have Wei's urn design with alpha = 0. If rho = 0, we have complete randomization.


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).


R. L. Smith (1984) Sequential treatment allocation using biased coin designs. Journal of the Royal Statistical Society B, 46, 519-543.
W. F. Rosenberger and J. M. Lachin (2002) Randomization in Clinical Trials. Wiley, 64-65

randomizeR documentation built on May 19, 2017, 11:30 p.m.

Search within the randomizeR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.