Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

How Do You Handle Unequal Cluster Sizes in a Cluster-Randomized Trial?

Unequal cluster sizes are common in school, hospital, and community trials. Understand how size variation affects statistical efficiency, treatment-effect weighting, and sample-size planning, and how to choose an appropriate analytical strategy.

209
Handling Unequal Cluster Sizes Guide 209 of 1272
01 · The Question

What Happens When Randomized Schools or Clinics Have Different Numbers of Participants?

Suppose you are evaluating an instructional intervention across 20 schools. Some schools contribute 40 students, while others contribute more than 300. All schools are randomly assigned to intervention or comparison conditions, but the numbers of participating students differ considerably.

Should every school contribute equally to the treatment-effect estimate? Should larger schools receive more weight because they contain more students? And can you calculate the sample size using the average number of students per school?

These questions matter because unequal cluster sizes affect more than the appearance of a dataset. They can influence statistical precision, the effectiveness of randomization, the relative contribution of different clusters, and even the meaning of the estimated intervention effect.

Equal cluster sizes are convenient for statistical formulas, but they are rarely guaranteed in real-world research. The methodological task is to anticipate size variation and handle it consistently with the research question.

02 · The Short Answer

Account for Cluster-Size Variation in Both Design and Analysis

In Brief

Unequal cluster sizes are acceptable in cluster-randomized trials, but researchers should account for their effects on statistical power, precision, allocation balance, and treatment-effect estimation. The appropriate approach depends on the distribution of cluster sizes, intracluster correlation, intended estimand, and planned analysis.

Do not assume that average cluster size alone adequately represents the design. Consider size variability during sample-size planning, distinguish participant-average from cluster-average effects, and use an analytical method whose weighting and correlation assumptions are appropriate for the study.

03 · What You Need to Know

Why Unequal Cluster Sizes Matter and How to Address Them

Unequal cluster sizes are common and do not invalidate randomization

A cluster-randomized trial assigns intact groups to intervention conditions. These groups may differ substantially in their numbers of eligible or participating individuals.

Schools have different enrollments. Clinics serve different patient populations. Communities vary in population size, and workplaces employ different numbers of staff.

These differences do not invalidate randomization. A school with 50 participating students and a school with 500 participating students can each be a valid randomized cluster.

However, the clusters contribute different amounts of individual-level outcome information. Researchers must distinguish the unit of randomization from the number of observations collected within that unit.

The implications depend on whether cluster sizes are fixed before allocation, change during follow-up, or are themselves influenced by the intervention.

Why equal-size assumptions are often unrealistic

Many introductory sample-size formulas assume that every cluster contributes the same number of participants. This simplifies calculations because the variance contribution of each cluster can be represented using one common cluster size.

In practice, researchers may recruit institutions of different sizes or obtain different participation rates within institutions.

For example, two schools may each enroll 200 eligible students, but one may contribute 180 outcome observations while the other contributes only 110 because of consent, attendance, or missing-data differences.

Researchers should therefore distinguish between eligible cluster size, recruited cluster size, and analyzed cluster size.

Their distributions may differ, and each can have different implications for study planning and interpretation.

How to measure cluster-size variability

A useful descriptive measure is the coefficient of variation (CV) of cluster sizes. It expresses the standard deviation of cluster size relative to the mean cluster size.

Coefficient of Variation of Cluster Size
CV = SD(m) / m̄
SD(m) is the standard deviation of the cluster sizes, and m̄ is their mean. Both must refer to the same defined cluster-size measure, such as expected analyzed participants per cluster.
Suppose five hypothetical clusters contain 20, 30, 40, 50, and 60 participants. Their mean is 40. Using the population standard deviation of approximately 14.14 gives CV = 14.14 / 40 = 0.354. The result indicates appreciable size variation relative to the mean, but it does not independently determine the trial's statistical power.

The CV is useful because two studies may have identical average cluster sizes but very different distributions.

A study with 20 clusters of approximately 100 participants each differs from one with the same average but clusters ranging from 10 to several hundred participants.

Researchers should also inspect the actual distribution, including unusually large or small clusters. A single CV may conceal substantial skewness or extreme values.

How unequal sizes affect the design effect

For equal cluster sizes, the familiar approximate design effect is:

Equal-Size Design Effect
DE = 1 + (m − 1)ρ
DE is the design effect; m is the common cluster size; ρ is the intracluster correlation coefficient (ICC).
With 40 participants per cluster and ICC = 0.05, DE = 1 + 39 × 0.05 = 2.95. Under the simplified assumptions, the variance is approximately 2.95 times that of a comparable independent-observation design.

When cluster sizes differ, a commonly used approximation for a participant-weighted mean under a simple exchangeable-correlation model is:

Approximate Design Effect With Unequal Sizes
DE ≈ 1 + [(1 + CV²)m̄ − 1]ρ
CV is the coefficient of variation of cluster sizes; m̄ is the mean cluster size; ρ is the ICC. The approximation concerns a particular participant-weighted variance comparison and should not be applied universally to every treatment-effect estimator.
If m̄ = 40, CV = 0.50, and ICC = 0.05, then DE ≈ 1 + [(1 + 0.25) × 40 − 1] × 0.05 = 3.45. The equal-size approximation with the same mean and ICC gives 2.95.

The example shows how cluster-size variation can increase variance inflation under the stated assumptions.

However, different estimators, weighting schemes, covariance structures, and relationships between cluster size and outcomes can produce different efficiency patterns. A single design-effect formula should not replace a calculation matched to the intended analysis.

The broader sample-size requirements of cluster randomization must also account for the number of independently randomized clusters.

Unequal cluster sizes can change which treatment effect is estimated

One of the most important distinctions concerns whether the researcher wants an effect averaged across individuals or an effect averaged across clusters.

A participant-average treatment effect gives equal conceptual weight to individuals in the target population. Larger clusters consequently contribute more individuals to that population.

A cluster-average treatment effect gives equal conceptual weight to clusters. A small school and a large school each contribute one cluster-level effect to the average.

Participant-average effect The intervention effect averaged across individuals in the defined target population, with larger clusters representing more individuals.
Cluster-average effect The intervention effect averaged across clusters, with each cluster receiving equal conceptual weight regardless of its size.

These estimands can differ when intervention effects vary across clusters and cluster size is associated with those effects.

For example, an intervention may be more effective in small schools with flexible teaching arrangements than in large schools with complex administrative structures.

Giving every school equal weight answers a different population-level question from giving every student equal weight.

Researchers should specify the intended estimand before selecting an analysis method rather than allowing software defaults to determine the weighting implicitly.

Informative cluster size requires particular attention

Cluster size is informative when it is associated with outcomes or treatment effects in a way relevant to the analysis and estimand.

For example, larger schools may have different baseline achievement, resources, or intervention responses from smaller schools. A clinic serving many patients may differ systematically from a smaller clinic in patient characteristics or care delivery.

Under informative cluster size, statistical procedures that weight observations or clusters differently may estimate different effects.

The issue is not necessarily bias in the ordinary sense. An estimator may be appropriate for one target estimand but inappropriate for another.

Researchers should investigate whether cluster size is associated with important baseline characteristics and prespecify how cluster-size-related differences will be addressed.

Should larger clusters receive more statistical weight?

There is no universal answer because weighting depends on the target estimand and statistical model.

If the objective is to estimate the average effect across all participating individuals, larger clusters naturally represent more members of that population. However, simply weighting cluster means by their sizes may not be the most efficient or robust estimator under every correlation structure.

If the objective is to estimate the average effect across institutions, equal cluster weighting may be appropriate.

Inverse-variance weighting may improve precision under suitable assumptions, but it can change the implicit weighting of clusters and may not correspond to the desired estimand when cluster size is informative.

The weighting strategy should therefore be chosen deliberately and justified in relation to the research question.

How unequal sizes affect allocation balance

Randomizing equal numbers of clusters to intervention and comparison conditions does not guarantee equal numbers of participants in each arm.

For example, ten schools may be assigned to each condition, but the intervention arm could contain 2,000 students while the comparison arm contains 1,200.

Such differences can affect precision and may be associated with other institutional characteristics.

When cluster size is known before randomization, researchers may consider balancing on size through stratification, matching, or covariate-constrained randomization.

However, these procedures should be prespecified, and the analysis should account for relevant allocation restrictions.

The choice between matching and stratifying clusters depends on the number of clusters, prognostic characteristics, and allocation objectives.

Cluster size should not be manipulated after allocation to improve results

Researchers should distinguish genuine variation in cluster size from differential recruitment after randomization.

If intervention schools recruit more students because teachers know their allocation, the resulting cluster-size differences may reflect post-randomization selection rather than pre-existing institutional size.

Similarly, excluding participants after observing outcomes can alter cluster sizes in ways that compromise comparability.

Prespecified eligibility criteria, recruitment procedures, and missing-data rules are therefore essential.

When participants are recruited after cluster allocation, researchers should assess whether the assigned condition influences enrollment and analyzed cluster sizes.

Analysis options must reflect the estimand and dependence structure

Cluster-randomized trials with unequal sizes may be analyzed using cluster-level summaries, mixed-effects models, generalized estimating equations, or randomization-based approaches.

Each approach requires attention to assumptions, weighting, small-sample inference, and the target treatment effect.

Cluster-level analysis can be relatively transparent because each randomized cluster contributes a summary outcome. However, equal weighting of cluster means generally targets a cluster-average contrast, while other weighting strategies may target different quantities.

Individual-level mixed-effects models can account for within-cluster correlation, but the interpretation of model coefficients and the implicit weighting of clusters require care, particularly with informative cluster size.

Generalized estimating equations may target marginal effects, but working correlation assumptions, weighting, and finite-sample corrections remain relevant.

No analytical method should be selected solely because it accommodates unequal cluster sizes computationally.

Why very small clusters and very large clusters both deserve attention

Very small clusters may contribute limited information about within-cluster outcome variability. Very large clusters may dominate participant-weighted estimates or provide diminishing statistical gains when the ICC is positive.

Extreme size imbalance can also increase sensitivity to the outcomes of a few large institutions.

Researchers should examine whether the analysis is disproportionately influenced by particular clusters and consider prespecified sensitivity analyses where appropriate.

However, excluding unusually large or small clusters simply to create a more uniform dataset can change the target population and introduce selection concerns.

How to plan for unequal sizes before the trial begins

Planning should use the anticipated distribution of eligible and analyzed cluster sizes, not only the average.

Relevant information may come from administrative records, previous trials, pilot studies, or institutional enrollment data.

Researchers should consider plausible changes due to recruitment, attrition, transfers, and missing outcomes.

When the distribution is highly unequal or the analytical model is complex, simulation-based power analysis may be preferable to a simple design-effect approximation.

Simulation should reproduce the intended allocation procedure, cluster-size distribution, ICC assumptions, outcome model, and planned statistical analysis.

The number of randomized clusters remains an important design parameter even when cluster-size variation is modeled carefully.

04 · A Practical Example

How Unequal School Sizes Can Change the Estimated Effect

Hypothetical Example

Two schools with different intervention effects

Consider a hypothetical population containing two schools. School A has 50 students and an intervention effect of eight achievement points. School B has 200 students and an intervention effect of two points.

Assume these are the true school-specific causal effects under a well-defined intervention comparison. The purpose is to illustrate how different estimands weight schools, not to estimate an effect from an actual two-school randomized trial.

Cluster-Average Effect
(8 + 2) / 2 = 5 points
Each school contributes equal weight to the average, regardless of enrollment.
The cluster-average effect is five points because the two school-specific effects are averaged equally.
Participant-Average Effect
[(50 × 8) + (200 × 2)] / 250 = 3.2 points
Each student contributes equal conceptual weight, so the larger school's effect receives greater weight in the population average.
The participant-average effect is 3.2 points because 200 of the 250 students belong to the school with the smaller intervention effect.

Interpretation: Neither result is inherently incorrect. The five-point effect answers a question about the average school, while the 3.2-point effect answers a question about the average student in this hypothetical population.

The difference arises because school size is associated with the school-specific intervention effect. This illustrates why cluster-size weighting should be determined by the intended estimand rather than selected after observing which result is more favorable.

In an actual randomized trial, researchers would need sufficient clusters and an appropriate analysis to estimate either quantity reliably.

05 · What Researchers Often Get Wrong

Common Mistakes When Clusters Have Different Sizes

Misconception

Clusters Must Be Equal in Size for Randomization to Be Valid

Equal sizes are not required. Unequal clusters can be randomized validly, but their size distribution should be considered in allocation, sample-size planning, and analysis.

Misconception

Average Cluster Size Is Sufficient for Every Power Calculation

Substantial variation can affect efficiency. A calculation based only on the mean may misrepresent the actual design, particularly when cluster sizes are highly skewed.

Misconception

Larger Clusters Should Always Receive More Weight

Weighting depends on the estimand and analysis. Participant-average and cluster-average effects answer different questions when treatment effects vary with cluster size.

Misconception

Equal Numbers of Clusters Guarantee Equal Participant Numbers

Randomizing ten schools per arm does not guarantee that the arms contain similar numbers of students. Cluster-size differences may create substantial participant-count imbalance.

Misconception

Statistical Software Automatically Chooses the Correct Estimand

Different models and weighting procedures may target different quantities. Researchers must specify the intended effect and verify that the analysis estimates it appropriately.

Misconception

Post-Randomization Cluster-Size Differences Are Always Harmless

When allocation affects recruitment, retention, or eligibility, cluster-size variation may reflect selection processes relevant to causal interpretation. Such differences require investigation.

06 · What This Means for You

Choose the Estimand First, Then Plan for Cluster-Size Variation

Before randomization, specify whether the primary effect should represent the average participant or the average cluster. This decision should reflect the substantive research question and target population.

Next, estimate the distribution of expected cluster sizes and assess whether unusually large or small clusters could affect allocation balance, precision, or analysis.

Finally, select a sample-size calculation and statistical model consistent with the intended estimand and realistic cluster-size variation.

A practical framework for unequal cluster sizes

If the target is the average individual
Use an analysis that appropriately targets the participant-average effect and accounts for within-cluster dependence.
If the target is the average institution
Consider a cluster-average estimand and an analysis with suitable cluster-level weighting.
If cluster sizes vary substantially
Use size-aware power calculations or simulation rather than relying solely on equal-size formulas.
If cluster size is associated with outcomes or treatment effects
Evaluate informative cluster size and the consequences of the intended weighting strategy.
If cluster sizes change after allocation
Investigate recruitment, attrition, and selection mechanisms before interpreting the resulting differences.

For school-based educational technology research, differences in enrollment may coincide with differences in infrastructure, staffing, and implementation capacity. Treating all schools as interchangeable may therefore obscure important features of the intervention effect.

The aim is not to force equal cluster sizes. It is to ensure that the study's design, analysis, and interpretation remain consistent with the population and effect the researcher intends to investigate.

07 · A Quick Checklist

Before Analyzing a Trial With Unequal Cluster Sizes

Before finalizing the design and analysis, check:
Define whether the primary estimand is participant-average or cluster-average.
Record eligible, recruited, and analyzed cluster sizes separately.
Calculate the mean, variation, and range of anticipated cluster sizes.
Assess whether cluster-size variation materially affects power and precision.
Use a design-effect approximation only when its assumptions fit the intended estimator.
Consider balancing cluster size during randomization when appropriate.
Investigate whether cluster size is associated with outcomes or treatment effects.
Select statistical weighting and correlation methods consistent with the estimand.
Assess whether allocation influenced recruitment or retention and therefore analyzed cluster sizes.
Report cluster-size distributions and justify any sensitivity analyses.
08 · Frequently Asked Questions

Frequently Asked Questions About Unequal Cluster Sizes

Do all clusters need the same number of participants?

No. Unequal cluster sizes are common and do not invalidate randomization. Their consequences for precision, weighting, and analysis should nevertheless be addressed.

Can I use average cluster size in a sample-size calculation?

It may be appropriate for an initial approximation when size variation is limited. With substantial variation, a size-aware calculation or simulation is generally preferable.

What is the coefficient of variation of cluster size?

It is the standard deviation of cluster sizes divided by their mean. It summarizes relative size variability and is used in some sample-size and design-effect approximations.

Should larger schools contribute more weight to the treatment effect?

That depends on the estimand. A participant-average effect conceptually weights individuals equally, while a cluster-average effect weights schools equally. Different analyses may be appropriate for these different questions.

What does informative cluster size mean?

Cluster size is informative when it is associated with outcomes or treatment effects in a way relevant to estimation. This can make weighting choices particularly consequential.

Can I exclude unusually large clusters?

Exclusion should not be based merely on size or its influence on results. Any eligibility restrictions should be scientifically justified and preferably prespecified because exclusions can alter the target population and estimand.

Does equal cluster allocation guarantee equal numbers of participants per arm?

No. Equal numbers of randomized schools or clinics may still produce substantial differences in participant totals when cluster sizes vary.

Can mixed-effects models handle unequal cluster sizes?

Yes, many mixed-effects models accommodate unequal cluster sizes. However, correct computation does not automatically guarantee that the model targets the intended estimand or provides reliable inference under every design.

09 · The Bottom Line

Unequal Cluster Sizes Are Manageable, but Their Consequences Must Be Planned

The Bottom Line

Unequal cluster sizes do not invalidate a cluster-randomized trial, but they can affect statistical efficiency, allocation balance, and the treatment effect being estimated. Researchers should account for size variation during sample-size planning and choose an analysis consistent with the intended estimand.

Distinguish participant-average from cluster-average effects, examine informative cluster size, and avoid relying on equal-size approximations when substantial variability exists. The objective is not equal enrollment across clusters, but valid inference about a clearly defined intervention effect.

10 · Sources and Further Reading

Methodological Sources on Unequal Cluster Sizes and Estimation

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes