Related Experiment Video
Updated: Feb 1, 2026

O-cresol Concentration Online Measurement Based On Near Infrared Spectroscopy Via Partial Least Square Regression
Published on: November 8, 2019
An online sample size calculator for designing partially clustered trials
Kylie M Lange1,2, Thomas R Sullivan1,2, Jessica Kasza3
1School of Public Health, The University of Adelaide, Adelaide, SA, Australia.
Background:
Partially clustered trials are trials that, by design, include a mixture of independent and clustered observations. For example, neonatal trials may include infants from a single, twin or triplet birth. The clustering of observations in partially clustered trials should be accounted for when determining the target sample size to avoid treatment arm comparisons being over or under powered. Limited tools are currently available for calculating the sample size for partially clustered trials, particularly when the maximum cluster size is greater than 2. The aim of this article is to introduce a new online application to calculate the target sample size for partially clustered trials covering a broad range of scenarios.
Methods:
The target sample size is calculated using design effects recently derived for two-arm partially clustered trials when the clusters exist prior to randomisation and the outcome of interest is continuous or binary. Both cluster and individual randomisation are considered for the clustered observations (resulting in nested and crossed designs, respectively). The sample size depends on quantities needed for typical sample size calculations, such as the effect size of interest, and the desired significance level and power. In addition, the sample size for partially clustered trials also depends on the range of cluster sizes, the proportion of observations that belong to clusters of each size, the intracluster correlation coefficient, the method of randomisation for the clustered observations, and the model that will be used for analysis. We developed an R Shiny web application that implements these methods in an easy-to-use sample size calculator that is freely available online.
Results:
The sample size calculator is free to access and provides trialists with the ability to determine the target sample size for different types of partially clustered trials. Step-by-step instructions are provided to illustrate the use of the calculator for designing two hypothetical trials. The target sample size that accounts for partial clustering can be quite different to the sample size that is calculated by methods for an independent design that ignore the clustering.
Conclusion:
Partial clustering affects the power and sample size requirements of clinical trials. The calculator presented in this article allows trialists to account for the clustering that occurs in two-arm partially clustered trials for binary and continuous outcomes and ensure their trials are appropriately powered.
Related Concept Videos
Sample Size Calculation
The sample size for the given experiment or sampling effort is fundamental to any study design. Sample size decides the number of...
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...
One-Way ANOVA: Unequal Sample Sizes
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...
Design Example: Calculating Safe Diameter for Wind-Exposed Disc
Calculating the Equilibrium Constant
For example, gaseous nitrogen dioxide forms dinitrogen tetroxide according to this equation:

