Sample size calculation in hierarchical factorial trials with unequal cluster sizes
- PMID: 34978097
- PMCID: PMC8962918
- DOI: 10.1002/sim.9284
Sample size calculation in hierarchical factorial trials with unequal cluster sizes
Abstract
Motivated by a suicide prevention trial with hierarchical treatment allocation (cluster-level and individual-level treatments), we address the sample size requirements for testing the treatment effects as well as their interaction. We assume a linear mixed model, within which two types of treatment effect estimands (controlled effect and marginal effect) are defined. For each null hypothesis corresponding to an estimand, we derive sample size formulas based on large-sample z-approximation, and provide finite-sample modifications based on a t-approximation. We relax the equal cluster size assumption and express the sample size formulas as functions of the mean and coefficient of variation of cluster sizes. We show that the sample size requirement for testing the controlled effect of the cluster-level treatment is more sensitive to cluster size variability than that for testing the controlled effect of the individual-level treatment; the same observation holds for testing the marginal effects. In addition, we show that the sample size for testing the interaction effect is proportional to that for testing the controlled or the marginal effect of the individual-level treatment. We conduct extensive simulations to validate the proposed sample size formulas, and find the empirical power agrees well with the predicted power for each test. Furthermore, the t-approximations often provide better control of type I error rate with a small number of clusters. Finally, we illustrate our sample size formulas to design the motivating suicide prevention factorial trial. The proposed methods are implemented in the R package H2x2Factorial.
Keywords: coefficient of variation; controlled effect; interaction test; linear mixed model; marginal effect; power analysis.
© 2022 John Wiley & Sons Ltd.
Conflict of interest statement
CONFLICT OF INTEREST
The authors have no conflict of interest.
Figures

Similar articles
-
Power analysis for cluster randomized trials with continuous coprimary endpoints.Biometrics. 2023 Jun;79(2):1293-1305. doi: 10.1111/biom.13692. Epub 2022 May 23. Biometrics. 2023. PMID: 35531926 Free PMC article.
-
Accounting for unequal cluster sizes in designing cluster randomized trials to detect treatment effect heterogeneity.Stat Med. 2022 Apr 15;41(8):1376-1396. doi: 10.1002/sim.9283. Epub 2021 Dec 19. Stat Med. 2022. PMID: 34923655 Free PMC article.
-
Sample size requirements for detecting treatment effect heterogeneity in cluster randomized trials.Stat Med. 2020 Dec 10;39(28):4218-4237. doi: 10.1002/sim.8721. Epub 2020 Aug 21. Stat Med. 2020. PMID: 32823372 Free PMC article.
-
Subgroup analyses in randomised controlled trials: quantifying the risks of false-positives and false-negatives.Health Technol Assess. 2001;5(33):1-56. doi: 10.3310/hta5330. Health Technol Assess. 2001. PMID: 11701102 Review.
-
An overview of variance inflation factors for sample-size calculation.Eval Health Prof. 2003 Sep;26(3):239-57. doi: 10.1177/0163278703255230. Eval Health Prof. 2003. PMID: 12971199 Review.
Cited by
-
Power analysis for cluster randomized trials with continuous coprimary endpoints.Biometrics. 2023 Jun;79(2):1293-1305. doi: 10.1111/biom.13692. Epub 2022 May 23. Biometrics. 2023. PMID: 35531926 Free PMC article.
-
Guidance for protocol content and reporting of factorial randomised trials: explanation and elaboration of the CONSORT 2010 and SPIRIT 2013 extensions.BMJ. 2025 Feb 4;388:e080785. doi: 10.1136/bmj-2024-080785. BMJ. 2025. PMID: 39904527 Free PMC article.
-
Pragmatic clinical trial design in emergency medicine: Study considerations and design types.Acad Emerg Med. 2022 Oct;29(10):1247-1257. doi: 10.1111/acem.14513. Epub 2022 May 22. Acad Emerg Med. 2022. PMID: 35475533 Free PMC article.
-
Reporting of Factorial Randomized Trials: Extension of the CONSORT 2010 Statement.JAMA. 2023 Dec 5;330(21):2106-2114. doi: 10.1001/jama.2023.19793. JAMA. 2023. PMID: 38051324 Free PMC article. Review.
-
A Hybrid Pragmatic and Factorial Cluster Randomized Controlled Trial for an Anti-racist, Multilevel Intervention to Improve Mental Health Equity in High Schools.Prev Sci. 2024 Jul;25(Suppl 3):486-496. doi: 10.1007/s11121-023-01626-x. Epub 2024 Jan 4. Prev Sci. 2024. PMID: 38175459 Free PMC article. Clinical Trial.
References
-
- Murray DM. Design and Analysis of Group-Randomized Trials. New York, NY: Oxford University Press; . 1998.
-
- Donner A, Klar N. Design and Analysis of Group-Randomized Trials in Health Research. New York, NY: Oxford University Press; . 2000.
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources