Menu location: Analysis_Randomization_Blocks
This function randomizes n individuals into k treatments, in blocks of size m.
Randomization reduces opportunities for bias and confounding in experimental designs, and leads to treatment groups which are random samples of the population sampled, thus helping to meet assumptions of subsequent statistical analysis (Bland, 2000).
Random allocation can be made in blocks in order to keep the sizes of treatment groups similar. In order to do this you must specify a sample size that is divisible by the block size you choose. In turn you must choose a block size that is divisible by the number of treatment groups you specify.
An advantage of small block sizes is that treatment group sizes are very similar. A disadvantage of small block sizes is that it is possible to guess some allocations, thus reducing blinding in the trial. An alternative to using large block sizes is to use random sequences of block sizes, which can be done in StatsDirect by specifying a block size of zero. The random block size option selects block sizes of 2, 3, or 4 (at random) times the number of treatments.
The randomization proceeds by allocating random permutations of treatments within each block.
Random allocation in blocks
Randomized with seed: 10
Block size: random between 4 and 8
Robust (pseudo-)random number generation is used, see random number generation.