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

Should Clustering and Repeated Measures Be Considered Before Sample Size Planning?

Clustering and repeated measurements affect the amount of independent information available in a study. Learn why these design features must be considered before sample size calculations, how correlation influences statistical precision, and why counting observations is not the same as counting independent units.

1043
Clustering and Repeated Measures in Sample Size Planning Guide 1043 of 1272
01 · The Question

Can You Calculate Sample Size Before Deciding Whether Your Observations Are Independent?

You are designing a quantitative study involving students within classrooms, patients within hospitals, employees within organizations, or participants assessed repeatedly over time. You know approximately how many individuals or observations you can collect, but you have not yet determined how the hierarchical or longitudinal structure will affect the analysis.

Suppose you plan to recruit 300 students from 10 classrooms. Does this provide the same statistical information as recruiting 300 independently sampled students? What if each student completes four assessments? Would 1,200 measurements provide four times as much information as 300 measurements?

These questions are important because conventional sample size calculations often assume independent observations. When participants share environments, instructors, institutions, or repeated measurement histories, that assumption may not hold.

Ignoring the dependence structure can produce unrealistic power estimates, inappropriate standard errors, and misleading conclusions about whether the study is adequately designed.

02 · The Short Answer

Yes, Clustering and Repeated Measures Must Inform Sample Size Planning

In Brief

Clustering and repeated measures should be considered before sample size planning whenever observations are statistically dependent. The required sample size depends not only on the number of participants or measurements but also on the number of independent units, the correlation structure, cluster sizes, allocation method, and intended statistical analysis.

Positive within-cluster correlation commonly reduces the information available relative to an equally sized independent sample, while appropriately designed repeated measurements may improve precision for particular estimands. Neither effect can be represented accurately by simply counting every observation as independent. Sample size planning should reflect the actual research design and its intended inference.

03 · What You Need to Know

Understanding Dependence Before Calculating Sample Size

What Is Clustering in Research?

Clustering occurs when observations are grouped within higher-level units and may be more similar to one another than to observations from other groups.

Examples include students within classrooms, teachers within schools, patients within hospitals, and employees within organizations.

Members of the same cluster may share environmental conditions, institutional practices, leadership, resources, or other characteristics.

Consequently, their outcomes may be correlated.

The extent and implications of clustering depend on the study design, outcome, and source of dependence. Researchers should not assume that every grouped dataset has the same correlation structure.

What Are Repeated Measures?

Repeated measures occur when the same participant or unit is observed on multiple occasions or under multiple conditions.

For example, students may complete writing assessments at baseline, midsemester, and the end of a course.

Measurements from the same student are usually related because they reflect characteristics that persist across occasions.

Repeated observations can provide information about change, trajectories, and within-person variation.

However, they do not represent independent participants. The analytical and sample size implications depend on the research question, measurement timing, correlation, and expected missingness.

Why Does Independence Matter for Sample Size?

Statistical precision depends on the amount of information available for estimating the target quantity.

When observations are independent, each observation may contribute relatively distinct information under the assumed model.

When observations are correlated, some information overlaps.

For example, students taught by the same instructor may respond similarly to an educational intervention because they share instructional conditions.

Counting these students as independent observations can underestimate uncertainty if the analysis ignores relevant clustering.

Sample size planning should therefore distinguish the number of recorded observations from the information available for the intended statistical comparison.

What Is the Intraclass Correlation Coefficient?

The intraclass correlation coefficient, commonly abbreviated ICC, describes the similarity of observations within clusters under a specified statistical model.

In a simple random-intercept model, it can be interpreted as the proportion of total outcome variance attributable to differences between clusters.

An ICC close to zero indicates relatively little within-cluster similarity under that model, while a larger positive ICC indicates greater similarity.

However, ICC values depend on the outcome, population, measurement conditions, and statistical model.

Researchers should not borrow an ICC from an unrelated study merely because the studies involve the same type of institution.

What Is the Design Effect?

The design effect describes how a sampling or study design changes the variance of an estimator relative to a specified reference design.

For equal-sized clusters under a simple exchangeable correlation model, a commonly used approximation is:

Illustrative Cluster Design Effect
DE = 1 + (m - 1)ρ
DE represents the design effect, m is the number of individuals per cluster, and ρ is the intraclass correlation coefficient.

For example, if each cluster contains 30 individuals and the ICC is 0.05, the approximate design effect is 2.45.

This indicates that the variance under the simplified clustered design is approximately 2.45 times the reference variance under the stated assumptions.

However, this formula does not fully represent unequal cluster sizes, covariate adjustment, small numbers of clusters, or every cluster randomized design.

What Is Effective Sample Size?

Effective sample size is a way of expressing how much information a dependent or otherwise complex sample provides relative to a defined independent-sampling reference.

Under the simplified cluster design effect approximation, researchers sometimes calculate:

Approximate Effective Sample Size
n_eff ≈ n / DE
n is the total number of observations and DE is the relevant design effect.

This calculation can illustrate the loss of precision associated with positive clustering.

However, effective sample size is not a universal property of a dataset. It depends on the estimator, outcome, and reference design.

Researchers should not use this approximation as a substitute for a sample size calculation tailored to the actual trial or observational design.

Why Does the Number of Clusters Matter?

The number of clusters can be particularly important when treatment is assigned or important exposures vary at the cluster level.

For example, a study randomizing 10 schools has only 10 independent randomization units, even if thousands of students are observed within them.

Increasing the number of students per school may improve precision, but its benefit can diminish as within-school correlation increases.

Adding independent schools may provide information that cannot be obtained simply by recruiting more students from existing schools.

Small numbers of clusters can also complicate variance estimation and statistical inference.

Researchers should therefore plan both the number of clusters and the number of participants within clusters.

Is Recruiting More Participants Within Each Cluster Always Helpful?

Additional participants can improve precision, but the marginal benefit depends on the ICC, cluster size, and analysis.

When within-cluster correlation is substantial, adding many individuals to a small number of clusters may be less efficient than increasing the number of clusters.

However, recruiting additional clusters may be more expensive or logistically difficult.

The appropriate allocation should consider statistical efficiency, recruitment capacity, intervention delivery, and available resources.

There is no universal rule that all studies should prioritize cluster count over individual count.

How Do Unequal Cluster Sizes Affect Sample Size?

Cluster sizes are often unequal because institutions differ in enrollment, recruitment capacity, or participant eligibility.

Unequal cluster sizes can reduce statistical efficiency under common models, although the extent depends on the allocation, correlation structure, and estimator.

Researchers should consider the anticipated distribution of cluster sizes rather than use only the average.

The coefficient of variation in cluster size is sometimes incorporated into design effect approximations.

However, the appropriate formula depends on the study design and analysis.

Simulation may be useful when cluster sizes vary substantially or the design includes several complex features.

Does Clustering Matter Only in Cluster Randomized Trials?

No. Clustering can affect observational studies, surveys, quasi-experiments, and individually randomized trials.

For example, students individually randomized within classrooms may still have correlated outcomes because of shared classroom conditions.

Likewise, observational studies comparing students across schools may need to account for institutional clustering.

However, the implications differ depending on whether treatment assignment, exposure, or outcome variation occurs within or between clusters.

Researchers should not automatically apply the same sample size inflation factor to every study containing grouped observations.

Can Repeated Measures Improve Statistical Power?

Yes, under appropriate conditions.

Repeated measurements may improve precision by allowing researchers to account for baseline variation or estimate within-person changes.

For example, an analysis of final writing performance adjusted for baseline writing score may be more precise than an unadjusted comparison when baseline scores are strongly predictive of final outcomes.

However, the benefit depends on the correlation structure, outcome variability, timing, and statistical model.

Repeated measurements do not automatically increase power in proportion to the number of observations.

Additional measurements may also increase participant burden and missing-data risk.

How Does Within-Person Correlation Affect Sample Size?

Within-person correlation influences the variance of changes, repeated-measures estimates, and other longitudinal quantities.

For two measurements with equal variance, the variance of their difference depends on the correlation between them.

Variance of a Paired Difference
Var(Y₂ - Y₁) = 2σ²(1 - r)
σ² is the common measurement variance and r is the correlation between the two measurements.

When the correlation is positive, the variance of a paired difference can be smaller than it would be under independence.

However, this formula assumes equal variances and concerns a particular paired comparison.

It should not be generalized directly to every longitudinal model or intervention design.

Is a Pretest-Posttest Design Always More Efficient?

Not necessarily. The efficiency of a pretest-posttest design depends on the research question, baseline-outcome relationship, measurement reliability, and analysis.

For randomized studies, baseline-adjusted analysis of covariance can often provide greater precision than an unadjusted final-score comparison when the baseline measure is predictive.

However, analyzing change scores and adjusting final scores for baseline are not mathematically or inferentially identical in every setting.

The appropriate method should be selected during design and reflected in sample size calculations.

Researchers should not choose between methods after examining which produces the most favorable result.

What If Participants Are Measured More Than Twice?

Studies with several measurement occasions may investigate trajectories, time-by-treatment interactions, or other longitudinal patterns.

Sample size planning must reflect the intended analytical target.

For example, detecting a difference in final outcomes is not the same as detecting a difference in rates of change over time.

Repeated-measures models may require assumptions about the covariance structure, measurement intervals, and expected dropout.

Additional measurement occasions may improve precision under some conditions, but the benefit can diminish when measurements are highly correlated.

Researchers should justify measurement frequency according to the scientific question rather than assume that more observations always provide proportionately more information.

How Does Attrition Affect Repeated-Measures Sample Size Planning?

Longitudinal studies may lose observations because participants withdraw, miss assessments, or become unavailable.

Attrition can reduce statistical power and introduce bias when missingness relates to unobserved outcomes.

Researchers should consider anticipated retention when calculating recruitment targets.

However, simply increasing the initial sample does not eliminate bias caused by informative missingness.

Retention procedures, relevant baseline measurements, and appropriate missing-data methods should be planned together.

The principles of missing-data planning are therefore particularly relevant to repeated-measures designs.

What If the Study Has Both Clustering and Repeated Measures?

Many educational, healthcare, and organizational studies involve multiple sources of dependence.

For example, students may be measured repeatedly while remaining nested within classrooms and schools.

The resulting data structure may include correlations among repeated observations from the same student and among students from the same classroom.

Sample size planning should account for the levels relevant to the intended inference.

Depending on the design, multilevel models, marginal models, or simulation-based calculations may be appropriate.

Researchers should not assume that a single ICC or simple design effect captures every source of dependence.

How Should Sample Size Be Calculated for Multilevel Studies?

The calculation should correspond to the intended estimator, allocation structure, and outcome model.

Relevant inputs may include the number of clusters, anticipated cluster sizes, ICCs, outcome variability, effect size, allocation ratio, and relevant covariate relationships.

For longitudinal designs, measurement occasions, within-person correlations, and expected missingness may also be necessary.

Analytical formulas can be appropriate for relatively simple designs.

For more complex structures, simulation-based power or precision analysis may provide a useful alternative.

However, simulation results depend on the assumptions used to generate the data and the correctness of the simulated analysis procedure.

Where Should ICC and Correlation Assumptions Come From?

Researchers may use relevant previous studies, pilot data, institutional records, or carefully justified scenarios.

However, estimates from small pilot studies may be imprecise.

ICC values may also differ across outcomes, populations, and institutional contexts.

Rather than rely on one apparently precise value, researchers may examine sample size requirements across a plausible range.

The source and uncertainty of assumptions should be documented.

Sensitivity analysis of planning assumptions can help determine whether the proposed design remains feasible under less favorable conditions.

Should Sample Size Planning Focus Only on Statistical Power?

No. Sample size may also be determined by the precision required for estimation, the number of clusters needed for valid inference, or other design-specific objectives.

For example, a descriptive multilevel study may prioritize sufficiently precise estimates of between-school variation rather than a conventional hypothesis test.

Researchers should define whether the goal is hypothesis testing, estimation, prediction, or another analytical purpose.

The relevant planning criterion should follow that purpose.

Power calculations are not interchangeable with precision-based calculations, and neither guarantees that the resulting design is free from bias.

What Happens If the Number of Clusters Is Too Small?

A small number of clusters may limit precision and complicate inference about cluster-level effects or variation.

For example, a study involving four schools may not support reliable estimation of a complex model containing several school-level predictors.

Some methods also rely on large-sample approximations that perform poorly with few clusters.

Small-sample corrections or alternative procedures may be considered, but they do not create information equivalent to having additional independent clusters.

Researchers should assess whether the intended inferential claims are feasible before collecting data.

Where necessary, the research question or design may need to be revised.

Can Researchers Ignore Clustering If the ICC Is Small?

Not automatically. Even a modest ICC may substantially affect precision when clusters are large.

For example, an ICC of 0.02 may appear small, but its contribution to the design effect increases with cluster size under the simplified approximation.

The importance of clustering depends on the design, estimator, number of clusters, and intended inference.

Researchers should not decide to ignore dependence solely because an estimated ICC fails to reach statistical significance.

The appropriate analysis should reflect the study structure and relevant uncertainty.

How Should Clustering and Repeated Measures Be Reflected in the SAP?

The statistical analysis plan should describe the hierarchy or longitudinal structure, the analytical unit, the allocation unit where relevant, and the method for accounting for dependence.

It should also identify the target effect, relevant covariates, covariance assumptions, and uncertainty estimation procedures.

For example, a classroom randomized study should distinguish the classroom as the randomization unit from the student as the outcome measurement unit.

The analysis and sample size assumptions should be consistent.

Researchers should avoid planning an independent-samples analysis when the design requires an approach that accounts for clustered allocation.

When Should a Statistician Be Involved?

Statistical expertise is particularly valuable before recruitment when the study includes cluster randomization, several hierarchical levels, unequal cluster sizes, or complex longitudinal measurements.

A statistician can help identify the target estimand, determine the required planning parameters, and evaluate feasible analytical approaches.

Early involvement may reveal that the proposed number of schools, classrooms, or measurement occasions is insufficient.

However, methodological consultation should also consider practical and substantive knowledge from the research setting.

The objective is to develop a design that is both scientifically defensible and operationally feasible.

Watch Out

Do not equate the total number of recorded observations with the number of independent statistical units. Three hundred students from ten classrooms and 300 independently sampled students may provide different amounts of information. Repeatedly measuring the same participants does not multiply the independent sample size by the number of measurement occasions.

04 · A Practical Example

Planning Sample Size for Students Nested Within Classrooms

Hypothetical Example

A Classroom-Based Evaluation of AI-Assisted Feedback

A research team plans to evaluate AI-assisted formative feedback using 10 classrooms with 30 students each.

Classrooms are the proposed units of randomization, while writing performance is measured for individual students.

The team initially assumes that 300 students provide the same information as 300 independently randomized individuals.

Illustrative Design Effect Calculation
DE = 1 + (30 - 1)(0.05) = 2.45
Assume equal cluster sizes of 30 students and an ICC of 0.05.
Approximate effective sample size: 300 / 2.45 = 122.4 independent-equivalent observations under the simplified variance approximation.

This calculation illustrates the effect of positive clustering. It is not a complete power calculation for a cluster randomized trial with only 10 classrooms.

In particular, the small number of randomization units, treatment allocation, degrees of freedom, covariate adjustment, and intended statistical test require additional consideration.

Identify the units

The team distinguishes classrooms as randomization units from students as outcome measurement units.

Estimate planning parameters

Researchers identify plausible ICC values, outcome variability, cluster sizes, and the expected treatment effect.

Evaluate cluster count

The team assesses whether 10 classrooms can support the planned comparison and uncertainty estimation.

Consider repeated assessments

If baseline and final writing scores are collected, the analysis plan incorporates their expected relationship and the proposed baseline adjustment.

Calculate power using the actual design

The team uses an appropriate cluster randomized calculation or simulation rather than relying only on the simplified effective sample size.

Revise the design if necessary

If precision or power is inadequate, researchers consider recruiting more classrooms, changing the inferential objective, or selecting another defensible design.

The example illustrates why the number of classrooms may be more consequential than the raw number of students for a classroom randomized intervention.

It also demonstrates why repeated measurements and clustering must be considered together rather than treated as unrelated adjustments applied after data collection.

05 · What Researchers Often Get Wrong

Common Misconceptions About Clustering, Repeated Measures, and Sample Size

Misconception

Every Observation Counts as an Independent Participant

Observations within clusters or repeated measurements from the same participant may be correlated. The effective information depends on the design and estimator.

Misconception

A Small ICC Can Always Be Ignored

Even modest positive correlation can affect precision substantially when clusters are large. Its implications should be evaluated in relation to the actual design.

Misconception

More Participants Within Existing Clusters Always Solve Low Power

Increasing cluster size may yield diminishing returns when within-cluster correlation is substantial. Additional independent clusters may be necessary.

Misconception

Four Assessments Provide Four Times the Independent Sample Size

Repeated observations from the same participant are generally dependent. Their benefit depends on the longitudinal model and correlation structure.

Misconception

The Simple Design Effect Formula Works for Every Multilevel Study

The common approximation assumes a particular cluster structure. Complex designs may require more appropriate formulas or simulation.

Misconception

Clustering Can Be Addressed Only After Data Collection

Clustering influences sample size, allocation, measurement, and analysis. It should be incorporated into design before recruitment.

06 · What This Means for You

How to Incorporate Dependence Into Sample Size Planning

Begin by identifying the units of recruitment, allocation, measurement, and analysis. Determine whether observations share clusters, repeated measurement histories, or both.

Then select a sample size method compatible with the intended estimator and the anticipated correlation structure.

A simple decision framework

If participants are nested within institutions or groups
Assess within-cluster correlation and the number and sizes of independent clusters.
If treatment is randomized by cluster
Use a cluster randomized sample size approach that reflects the allocation and number of clusters.
If participants are measured repeatedly
Incorporate the intended longitudinal comparison, measurement occasions, and within-person covariance.
If clustering and repeated measures coexist
Consider a multilevel or simulation-based calculation that represents both dependence structures.
If planning correlations are uncertain
Evaluate sample size requirements across plausible parameter ranges rather than rely on one unsupported estimate.

Sample size planning should represent the information the design can realistically provide, not merely the number of rows expected in the final dataset.

07 · A Quick Checklist

Before Calculating Sample Size for Dependent Data

Before finalizing recruitment targets, check:
Identify the recruitment, allocation, measurement, and analysis units.
Determine whether observations are clustered, repeated, or both.
Specify the primary estimand and statistical model.
Identify plausible ICCs, within-person correlations, and outcome variability.
Consider the number of clusters and anticipated cluster-size distribution.
Account for repeated measurement timing and expected attrition.
Select a calculation or simulation appropriate to the actual design.
Evaluate uncertainty in the planning assumptions through alternative scenarios.
Confirm that the analysis plan and sample size calculation use compatible assumptions.
08 · Frequently Asked Questions

Frequently Asked Questions About Clustering and Repeated-Measures Sample Size

Should clustering be considered before calculating sample size?

Yes. Clustering may affect statistical precision, power, and the number of independent units. Sample size planning should reflect the intended clustered design.

Does repeated measurement increase sample size?

It increases the number of observations, but not the number of independent participants. Its effect on precision depends on the analysis and within-person correlation.

What is the design effect?

The design effect describes how a particular design changes estimator variance relative to a reference design. A common equal-cluster approximation is 1 + (m - 1) times the ICC.

Is the number of clusters more important than the number of participants?

It can be, particularly in cluster randomized studies with substantial within-cluster correlation. Both dimensions should be evaluated rather than applying a universal rule.

Can a small ICC be ignored?

Not automatically. Its consequences depend on cluster size, number of clusters, allocation, and the intended analysis.

Can repeated measures improve statistical power?

Yes, under suitable conditions. Their benefit depends on correlation, measurement timing, missingness, and the intended statistical model.

What if the study has both clustered and longitudinal data?

Sample size planning should represent both dependence structures. Complex designs may benefit from multilevel or simulation-based calculations.

09 · The Bottom Line

Count Independent Information, Not Just Observations

The Bottom Line

Clustering and repeated measures should be incorporated into sample size planning before recruitment because they affect statistical dependence, precision, and the amount of information available for inference. The number of participants, clusters, and measurement occasions must be evaluated together with the intended analysis.

Use appropriate correlation assumptions, account for the number of independent units, and examine uncertainty in planning parameters. A large dataset is not necessarily an adequately powered study when its observations are strongly dependent or its independent clusters are too few.

10 · Sources and Further Reading

Foundational Research and Guidance on Clustered and Longitudinal Sample Size Planning

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