Learn R Programming

randomizeR (version 3.0.2)

abcdRand: Sampling algorithm for abcd

Description

Sampling algorithm for abcd

Usage

abcdRand(N, a, K = 2)

Value

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

Arguments

N

integer for the total sample size of the trial.

a

nonnegative parameter which controls the degree of randomness: For decreasing a the allocations become deterministic, while for increasing a the randomization procedure tends to complete randomization.

K

number of treatment groups (e.g. K=2 if we compare one experimental against one control treatment).

References

A. B. Antognini and A. Giovagnoli (2004) A new 'biased coin design' for the sequential allocation of two treatments. Journal of the Royal Statistical Society. Series C (Applied Statistics) 53, No. 4, 651-664