BMJ 1999;319:703-704 ( 11 September )

Education and debate

Statistics notes

How to randomise

Douglas G Altman, professor of statistics in medicine a J Martin Bland, professor of medical statistics b

a ICRF Medical Statistics Group, Centre for Statistics in Medicine, Institute of Health Sciences, Oxford OX3 7LF, b Department of Public Health Sciences, St George's Hospital Medical School, London SW17 0RE

Correspondence to: Professor Altman.

We have explained why random allocation of treatments is a required feature of controlled trials.1 Here we consider how to generate a random allocation sequence.

Almost always patients enter a trial in sequence over a prolonged period. In the simplest procedure, simple randomisation, we determine each patient's treatment at random independently with no constraints. With equal allocation to two treatment groups this is equivalent to tossing a coin, although in practice coins are rarely used. Instead we use computer generated random numbers. Suitable tables can be found in most statistics textbooks. The table shows an example2: the numbers can be considered as either random digits from 0 to 9 or random integers from 0 to 99.

For equal allocation to two treatments we could take odd and even numbers to indicate treatments A and B respectively. We must then choose an arbitrary place to start and also the direction in which to read the table. The first 10 two digit numbers from a starting place in column 2 are 85 80 62 36 96 56 17 17 23 87, which translate into the sequence A B B B B B A A A A for the first 10 patients. We could instead have taken each digit on its own, or numbers 00 to 49 for A and 50 to 99 for B. There are countless possible strategies; it makes no difference which is used.

We can easily generalise the approach. With three groups we could use 01 to 33 for A, 34 to 66 for B, and 67 to 99 for C (00 is ignored). We could allocate treatments A and B in proportions 2 to 1 by using 01 to 66 for A and 67 to 99 for B.

At any point in the sequence the numbers of patients allocated to each treatment will probably differ, as in the above example. But sometimes we want to keep the numbers in each group very close at all times. Block randomisation (also called restricted randomisation) is used for this purpose. For example, if we consider subjects in blocks of four at a time there are only six ways in which two get A and two get B:

1: A A B B 2: A B A B 3: A B B A 4: B B A A 5: B A B A 6: B A A B

We choose blocks at random to create the allocation sequence. Using the single digits of the previous random sequence and omitting numbers outside the range 1 to 6 we get 5 6 2 3 6 6 5 6 1 1. From these we can construct the block allocation sequence B A B A / B A A B / A B A B / A B B A / B A A B, and so on. The numbers in the two groups at any time can never differ by more than half the block length. Block size is normally a multiple of the number of treatments. Large blocks are best avoided as they control balance less well. It is possible to vary the block length, again at random, perhaps using a mixture of blocks of size 2, 4, or 6. 


                              
View this table:
[in this window]
[in a new window]
 

Excerpt from a table of random digits.2 The numbers used in the example are shown in bold

While simple randomisation removes bias from the allocation procedure, it does not guarantee, for example, that the individuals in each group have a similar age distribution. In small studies especially some chance imbalance will probably occur, which might complicate the interpretation of results. We can use stratified randomisation to achieve approximate balance of important characteristics without sacrificing the advantages of randomisation. The method is to produce a separate block randomisation list for each subgroup (stratum). For example, in a study to compare two alternative treatments for breast cancer it might be important to stratify by menopausal status. Separate lists of random numbers should then be constructed for premenopausal and postmenopausal women. It is essential that stratified treatment allocation is based on block randomisation within each stratum rather than simple randomisation; otherwise there will be no control of balance of treatments within strata, so the object of stratification will be defeated.

Stratified randomisation can be extended to two or more stratifying variables. For example, we might want to extend the stratification in the breast cancer trial to tumour size and number of positive nodes. A separate randomisation list is needed for each combination of categories. If we had two tumour size groups (say =<4 and >4cm) and three groups for node involvement (0, 1-4, >4) as well as menopausal status, then we have 2×3×2=12 strata, which may exceed the limit of what is practical. Also with multiple strata some of the combinations of categories may be rare, so the intended treatment balance is not achieved.

In a multicentre study the patients within each centre will need to be randomised separately unless there is a central coordinated randomising service. Thus "centre" is a stratifying variable, and there may be other stratifying variables as well.

In small studies it is not practical to stratify on more than one or perhaps two variables, as the number of strata can quickly approach the number of subjects. When it is really important to achieve close similarity between treatment groups for several variables minimisation can be used---we discuss this method in a separate Statistics note.3

We have described the generation of a random sequence in some detail so that the principles are clear. In practice, for many trials the process will be done by computer. Suitable software is available at http://www.sghms.ac.uk/phs/staff/jmb/jmb.htm.

We shall also consider in a subsequent note the practicalities of using a random sequence to allocate treatments to patients.

References
1. Altman DG, Bland JM. Treatment allocation in controlled trials: why randomise? BMJ 1999; 318: 1209[Free Full Text].
2. Altman DG. Practical statistics for medical research. London: Chapman and Hall, 1990:540-544.
3. Treasure T, MacRae KD. Minimisation: the platinum standard for trials? BMJ 1998; 317: 362-363[Free Full Text].


© BMJ 1999

Related Articles

Is restricted randomisation necessary?
Catherine E Hewitt and David J Torgerson
BMJ 2006 332: 1506-1508. [Full Text] [PDF]

Not such distant mirrors
J W Dickson and James C Watts
BMJ 2000 320: 383. [Extract] [Full Text]

This article has been cited by other articles:

  • Cabrales, P., Tsai, A. G., Intaglietta, M. (2008). Modulation of Perfusion and Oxygenation by Red Blood Cell Oxygen Affinity during Acute Anemia. Am. J. Respir. Cell Mol. Bio. 38: 354-361 [Abstract] [Full text]  
  • Weiniger, C. F., Ginosar, Y., Elchalal, U., Sharon, E., Nokrian, M., Ezra, Y. (2007). External Cephalic Version for Breech Presentation With or Without Spinal Analgesia in Nulliparous Women at Term: A Randomized Controlled Trial. Obstet Gynecol 110: 1343-1350 [Abstract] [Full text]  
  • Tsang, R. C.-C., Tsang, P.-L., Ko, C.-Y., Kong, B. C.-H., Lee, W.-Y., Yip, H.-T. (2007). Effects of acupuncture and sham acupuncture in addition to physiotherapy in patients undergoing bilateral total knee arthroplasty a randomized controlled trial. Clin Rehabil 21: 719-728 [Abstract]  
  • Cabrales, P. (2007). Effects of erythrocyte flexibility on microvascular perfusion and oxygenation during acute anemia. Am. J. Physiol. Heart Circ. Physiol. 293: H1206-H1215 [Abstract] [Full text]  
  • Savaris, R. F., Teixeira, L. M., Torres, T. G., Edelweiss, M. I. A., Moncada, J., Schachter, J. (2007). Comparing Ceftriaxone Plus Azithromycin or Doxycycline for Pelvic Inflammatory Disease: A Randomized Controlled Trial. Obstet Gynecol 110: 53-60 [Abstract] [Full text]  
  • Cabrales, P., Tsai, A. G. (2006). Plasma viscosity regulates systemic and microvascular perfusion during acute extreme anemic conditions. Am. J. Physiol. Heart Circ. Physiol. 291: H2445-H2452 [Abstract] [Full text]  
  • Lupparelli, S., Calvisi, V., Romanini, E., Matsumoto, A., Kuroda, R., Yoshiya, S., Kurosaka, M. (2006). Letters to the Editor * Authors' Response. Am J Sports Med 34: 1699-1699 [Full text]  
  • Bleakley, C M, McDonough, S M, MacAuley, D C, Bjordal, J (2006). Cryotherapy for acute ankle sprains: a randomised controlled study of two different icing protocols * Commentary. Br. J. Sports. Med. 40: 700-705 [Abstract] [Full text]  
  • Cabrales, P., Martini, J., Intaglietta, M., Tsai, A. G. (2006). Blood viscosity maintains microvascular conditions during normovolemic anemia independent of blood oxygen-carrying capacity. Am. J. Physiol. Heart Circ. Physiol. 291: H581-H590 [Abstract] [Full text]  
  • Hewitt, C. E, Torgerson, D. J (2006). Is restricted randomisation necessary?. BMJ 332: 1506-1508 [Full text]  
  • Butler, C. C, Vidal-Alaball, J., Cannings-John, R., McCaddon, A., Hood, K., Papaioannou, A., Mcdowell, I., Goringe, A. (2006). Oral vitamin B12 versus intramuscular vitamin B12 for vitamin B12 deficiency: a systematic review of randomized controlled trials. Fam Pract 23: 279-285 [Abstract] [Full text]  
  • Gluud, L. L. (2006). Bias in Clinical Intervention Research. Am J Epidemiol 163: 493-501 [Abstract] [Full text]  
  • Ji, B., Liu, M., Lu, F., Liu, J., Wang, G., Feng, Z., Hu, Q. (2006). Warm induction cardioplegia and reperfusion dose influence the occurrence of the post CABG TnI level. ICVTS 5: 67-70 [Abstract] [Full text]  
  • Cabrales, P., Tsai, A. G., Winslow, R. M., Intaglietta, M. (2005). Extreme hemodilution with PEG-hemoglobin vs. PEG-albumin. Am. J. Physiol. Heart Circ. Physiol. 289: H2392-H2400 [Abstract] [Full text]  
  • Mosis, G., Vlug, A. E., Mosseveld, M., Dieleman, J. P., Stricker, B. C., van der Lei, J., Sturkenboom, M. C.J.M. (2005). A Technical Infrastructure to Conduct Randomized Database Studies Facilitated by a General Practice Research Database. J. Am. Med. Inform. Assoc. 12: 602-607 [Abstract] [Full text]  
  • Akobeng, A K (2005). Understanding randomised controlled trials. Arch. Dis. Child. 90: 840-844 [Abstract] [Full text]  
  • Altman, D. G, Bland, J M. (2005). Treatment allocation by minimisation. BMJ 330: 843-843 [Full text]  
  • Bagley, P., Hudson, M., Forster, A., Smith, J., Young, J. (2005). A randomized trial evaluation of the Oswestry Standing Frame for patients after stroke. Clin Rehabil 19: 354-364 [Abstract]  
  • Horkan, C., Dalal, K., Coderre, J. A., Kiger, J. L., Dupuy, D. E., Signoretti, S., Halpern, E. F., Goldberg, S. N. (2005). Reduced Tumor Growth with Combined Radiofrequency Ablation and Radiation Therapy in a Rat Breast Tumor Model. Radiology 235: 81-88 [Abstract] [Full text]  
  • Cabrales, P., Tsai, A. G., Intaglietta, M. (2005). Alginate plasma expander maintains perfusion and plasma viscosity during extreme hemodilution. Am. J. Physiol. Heart Circ. Physiol. 288: H1708-H1716 [Abstract] [Full text]  
  • Cabrales, P., Sakai, H., Tsai, A. G., Takeoka, S., Tsuchida, E., Intaglietta, M. (2005). Oxygen transport by low and normal oxygen affinity hemoglobin vesicles in extreme hemodilution. Am. J. Physiol. Heart Circ. Physiol. 288: H1885-H1892 [Abstract] [Full text]  
  • Cabrales, P., Tsai, A. G., Frangos, J. A., Briceno, J. C., Intaglietta, M. (2004). Oxygen delivery and consumption in the microcirculation after extreme hemodilution with perfluorocarbons. Am. J. Physiol. Heart Circ. Physiol. 287: H320-H330 [Abstract] [Full text]  
  • Cabrales, P., Tsai, A. G., Intaglietta, M. (2004). Microvascular pressure and functional capillary density in extreme hemodilution with low- and high-viscosity dextran and a low-viscosity Hb-based O2 carrier. Am. J. Physiol. Heart Circ. Physiol. 287: H363-H373 [Abstract] [Full text]  
  • Obuchowski, N. A. (2003). Special Topics III: Bias. Radiology 229: 617-621 [Abstract] [Full text]  
  • D'Ippolito, G., Ahmed, M., Girnun, G. D., Stuart, K. E., Kruskal, J. B., Halpern, E. F., Goldberg, S. N. (2003). Percutaneous Tumor Ablation: Reduced Tumor Growth with Combined Radio-frequency Ablation and Liposomal Doxorubicin in a Rat Breast Tumor Model. Radiology 228: 112-118 [Abstract] [Full text]  
  • Courneya, K. S., Mackey, J. R., Bell, G. J., Jones, L. W., Field, C. J., Fairey, A. S. (2003). Randomized Controlled Trial of Exercise Training in Postmenopausal Breast Cancer Survivors: Cardiopulmonary and Quality of Life Outcomes. JCO 21: 1660-1668 [Abstract] [Full text]  
  • Patterson, J, Barlow, J, Mockford, C, Klimes, I, Pyper, C, Stewart-Brown, S (2002). Improving mental health through parenting programmes: block randomised controlled trial. Arch. Dis. Child. 87: 472-477 [Abstract] [Full text]  
  • Vassiliades, T. A. Jr, Nielsen, J. L., Lonquist, J. L. (2002). Coronary perfusion methods during off-pump coronary artery bypass: results of a randomized clinical trial. Ann. Thorac. Surg. 74: S1383-1389 [Abstract] [Full text]  
  • Souza, D. S.R., Dashwood, M. R., Tsui, J. C.S., Filbey, D., Bodin, L., Johansson, B., Borowiec, J. (2002). Improved patency in vein grafts harvested with surrounding tissue: results of a randomized study using three harvesting techniques. Ann. Thorac. Surg. 73: 1189-1195 [Abstract] [Full text]  
  • Bhandari, M., Richards, R. R., Sprague, S., Schemitsch, E. H. (2002). The Quality of Reporting of Randomized Trials in The Journal of Bone and Joint Surgery from 1988 through 2000. JBJS 84: 388-396 [Abstract] [Full text]  
  • Lim, K. H. H., Caputo, M., Ascione, R., Wild, J., West, R., Angelini, G. D., Bryan, A. J., Calafiore, S. A. M. (2002). Prospective randomized comparison of CarboMedics and St Jude Medical bileaflet mechanical heart valve prostheses: An interim report. J. Thorac. Cardiovasc. Surg. 123: 21-32 [Abstract] [Full text]  
  • Vickers, A. J, Altman, D. G (2001). Statistics Notes: Analysing controlled trials with baseline and follow up measurements. BMJ 323: 1123-1124 [Full text]  
  • Altman, D. G, Schulz, K. F (2001). Statistics Notes: Concealing treatment allocation in randomised trials. BMJ 323: 446-447 [Full text]  
  • Dickson, J W, Watts, J. C (2000). Not such distant mirrors. BMJ 320: 383a-383 [Full text]  

Rapid Responses:

Read all Rapid Responses

A simple approach for randomisation
Steve Simon
bmj.com, 17 Sep 1999 [Full text]
A World Wide Web Resource
Gerard E Dallal
bmj.com, 23 Sep 1999 [Full text]



Student BMJ

Risk of surgery for inflammatory bowel disease: record linkage studies

What can you learn from this BMJ paper? Read Leanne Tite's Paper+

www.student.bmj.com

Listen to the latest BMJ Interview