Related Experiment Video
Updated: May 6, 2026

Sampling Soils in a Heterogeneous Research Plot
Published on: January 7, 2019
Covariate balanced allocation of samples to batches to mitigate the impacts of technical variability
John F Mulvey1, Alicia Lundby1
1Department of Biomedical Sciences, University of Copenhagen, Faculty of Health and Medical Sciences, Denmark.
Motivation:
Performing assays on large numbers of samples requires their analysis in distinct batches, which commonly affects the measurements made in a systematic way. Analytical approaches can correct for such batch effects, however for this to be possible the batch should not be confounded with either the independent variable or any covariates relevant to the analysis. Thus, how samples are distributed across batches influences subsequent analytic conclusions.
Results:
We present SampleAllocateR, a tool that uses optimizsation methods from machine learning to optimally allocate a preselected set of samples to experimental batches in a way that statistically balances specified covariates between batches. This will result in better statistical estimates of the effect of not only the technical batch effects but also the other specified covariates upon the results of the experiment. SampleAllocateR accepts both continuous and categorical covariates, supports blocking of related samples (such as those from the same subject), and is tolerant of missing metadata.
Availability And Implementation:
SampleAllocateR is freely available as an open source R package at https://github.com/CardiacProteomics/SampleAllocateR.
Related Concept Videos
Randomized Experiments
Simple randomization
Simple...
Bioequivalence Experimental Study Designs: Completely Randomized and Randomized Block Designs
Stratified Sampling Method
To choose a stratified sample, divide the population into groups called strata and then take a...
Cluster Sampling Method
To choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your...
Sampling Plans
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...
Random Sampling Method

