Biased Coin Design Allocation
Allocates observations sequentially using a biased coin design. If equal numbers have been allocated to treatment and control, the next observation is allocated to treatment with probability 1/2. If there are more units assigned to treatment than control, the next observation is allocated to control with probability p; if there are more units assigned to control than treatment, the next observation is allocated to treatment with probability p.
bcdalloc(n, pbcd, tol = 1e-06)
number of observations
probability p used for biased coin
tolerance used for allocation
Vector of zeroes and ones indicating the allocation of each unit to treatment (1) or control (0)
Xiaoshu Zhu firstname.lastname@example.org and Sharon Lohr
Efron, B. (1971). Forcing a sequential experiment to be balanced. Biometrika, 58(3), 403-417.
Lohr, S. and X. Zhu (2015). Randomized Sequential Individual Assignment in Social Experiments: Evaluating the Design Options Prospectively. Sociological Methods and Research. [Advance online publication: December 27, 2015] doi: 10.1177/0049124115621332.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.