Random Allocation to Two Independent Groups

 

Menu location: Analysis_Randomization_Two Independent Groups

 

This function allocates a given number of subjects at random to one of two independent groups.

 

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

 

Two independent groups might be intervention and control groups, for example to examine the effect of a new treatment. For a randomized controlled trial of a new treatment you would randomly allocate some subjects to receive the new treatment and the other subjects to receive the control treatment (e.g. placebo drug).

 

Illustration

For a total of 30 subjects, 15 to each group, you would enter 30 into this function. The allocation below was produced with 10 as the seed: entering the same seed reproduces it, and leaving the seed blank gives a fresh allocation each time.

 

Unpaired random allocation to intervention or control group

Randomized with seed: 10

Intervention 2 Control 1
Intervention 3 Control 4
Intervention 6 Control 5
Intervention 7 Control 9
Intervention 8 Control 11
Intervention 10 Control 12
Intervention 15 Control 13
Intervention 16 Control 14
Intervention 19 Control 17
Intervention 22 Control 18
Intervention 23 Control 20
Intervention 25 Control 21
Intervention 27 Control 24
Intervention 29 Control 26
Intervention 30 Control 28

 

- here the first subject would be allocated to the control group and the second to the intervention group, and so on.

 

Technical validation

Robust (pseudo-)random number generation is used, see random number generation.