Skip to content

ENH: stats for cluster randomized trials - count, binomial #8390

Open

Description

@josef-pkt

PASS has power and sample size computation for cluster randomized trials,
I never looked at the details

Song and Ahn looks like a good starting point, although it has only very few citation. It describes and compares several methods, including GEE.
The variance correction versions take intracluster correlation into account and looks very similar to excess dispersion in beta-binomial, it's the same formula as far as I remember for dispersion coefficient. So we could use those also for over-dispersion.

Song, James X., and Chul Ahn. 2002. “Cluster Randomization Trials: A Simulation Study.” Biometrical Journal 44 (3): 375–90. https://doi.org/10.1002/1521-4036(200204)44:3<375::AID-BIMJ375>3.0.CO;2-S

Song and Ahn is for odds-ratio in 2x2xk stratified two sample proportion Cochran-Mantel-Haenszel Test

2 cases among many others that PASS has
Tests_for_Two_Proportions_in_a_Stratified_Cluster-Randomized_Design-Cochran-Mantel-Haenszel_Test.pdf
Tests_for_the_Difference_Between_Two_Poisson_Rates_in_a_Cluster-Randomized_Design.pdf

main reference for sample size and power in cluster CMH in PASS is
Xu, X., Zhu, H., and Ahn, C. 2019. 'Sample size considerations for stratified cluster randomization design with
binary outcomes and varying cluster size', Statistics in Medicine, Volume 38, Number 18, pages 3395-3404.

related
correlated, paired samples (cluster size = 2) (mostly missing except for differenced endog in linear models)
excess dispersion in Binomial and Poisson #2890
2x2xk samples #7184
several of new stats functions for poisson rates allow for dispersion coefficient different from 1.

I guess, the same as for odds-ratio in CMH will apply to other proportions_2indep comparisons #4828
e.g. different effect sizes in meta-analysis

Not clear to me, ambiguous in references:
Do we allow both cases, one treatment per cluster and both treatments in each cluster?
Also "group" in the literature often refers to treatment group and "cluster" refers to the correlation unit.
In statmodels, we use the term "groups" for clusters, treatment is part of exog in models.

Activity

  1. josef-pkt commented on Feb 12, 2025

    @josef-pkt
    MemberAuthor

    with gee and cluster robust standard errors in the main models, we can use regression models even for simple cases

    Li, Peng, and David T. Redden. 2015. “Small Sample Performance of Bias-Corrected Sandwich Estimators for Cluster-Randomized Trials with Binary Outcomes.” Statistics in Medicine 34 (2): 281–96. https://doi.org/10.1002/sim.6344.
    Articles that cite this article looks like a good starting point for recent literature on cluster-randomized hypothesis tests and related functions.

    We need more comparison of stats inference and model inference, and their differences and limitations.

    related
    Ahn, C. and co-authors have also several articles for sample-size or power computation for GEE with simple design cases.

    Can we use regression power computation based on F and chi2 (and t?) effect sizes also for GEE?
    (I don't see why not.)

  2. added this to the 0.16 milestone on Feb 12, 2025
  3. josef-pkt commented on Oct 9, 2025

    @josef-pkt
    MemberAuthor

    Related:
    We can also use GEE or models with cluster robust standard errors.
    Using cluster robust standard errors in OLS and other models does not improve efficiency of parameter estimates, in contrast to GEE.
    GEE should also cover for the, AFAIR, still missing GLS for panel/clustered data with autocorrelation, and GEE has a larger collection of covariance structures available.

    book, cited by PASS for power and sample size computation for GEE:

    Ahn, Chul, Moonseoung Heo, and Song Zhang. 2014. Sample Size Calculations for Clustered and Longitudinal Outcomes in Clinical Research. Chapman and Hall/CRC. https://doi.org/10.1201/b17822.

    Looks good, and has references to original articles.
    In contrast, Chow et al book mostly just states the formulas without justification or explanation for why they work.

    Chow, Shein-Chung, Jun Shao, Hansheng Wang, and Yuliya Lokhnygina. 2017. Sample Size Calculations in Clinical Research. 3rd ed. Chapman and Hall/CRC. https://doi.org/10.1201/9781315183084.

  4. josef-pkt commented on Oct 9, 2025

    @josef-pkt
    MemberAuthor

    new article
    I did not look at it but it has many references

    Gravelle, Patrick, and Roee Gutman. 2025. “Methods to Adjust for Stratification Variables in Stratified Cluster Randomized Trials.” Health Services and Outcomes Research Methodology, ahead of print, June 8. https://doi.org/10.1007/s10742-025-00346-9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions