Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 1991;21(1-2):69-77.
doi: 10.1016/0010-4825(91)90037-a.

Basic algorithms for random sampling and treatment randomization

Affiliations

Basic algorithms for random sampling and treatment randomization

J A Byers. Comput Biol Med. 1991.

Abstract

Five BASIC programs to select random samples from populations or to randomize treatments are presented. Program 1 is used to obtain randomization of any number of treatments in an equal number of positions or test units for any number of replicates. Program 2 produces latin squares of any size for treatment randomization. Program 3 is used to obtain a specific number of randomly selected samples from a population without replacement. Program 4 produces quasi-latin squares that have treatments repeated equally in all rows and columns, with identical treatments either spaced or not. Program 5 can be used with any size grid to place 3-100 treatments in equal proportions and with spacing of identical treatments. Both programs 4 and 5 allow for horizontal and vertical separation between identical treatments at sampling places while still retaining the quality of randomness. These programs should facilitate random sampling and randomization procedures which are required to correctly analyze experiments by the methods of statistical probability.

PubMed Disclaimer

Publication types

LinkOut - more resources