Longitudinal Models · GEE-2G-I

Sample Size for Two-Group GEE: Omnibus Group-by-Time Interaction

Plan an omnibus Wald test of whether two population-average marginal mean profiles differ over categorical follow-up visits.

1. Planning setup

With baseline, the test compares every follow-up group difference with zero. Without baseline, it tests whether group differences vary across follow-ups.

Follow-ups are equally spaced.

2. Information obtained from previous studies or pilot data

Assumed common across groups and visits.

3. Inputs decided by the researcher for the new study

Enter anticipated comparison-group minus reference-group marginal mean differences. Negative and positive values are accepted.

4. Results

Enter the marginal design assumptions and anticipated group-difference profile, then select Calculate.

Formula, assumptions, limitations, and methodological note

Example clinical scenario

A randomized diabetes-management trial measures HbA1c at baseline and 3, 6, 9, and 12 months. Investigators expect little difference initially and a larger intervention effect later. The primary analysis uses GEE to estimate population-average marginal means and jointly tests whether the intervention and control profiles differ across follow-up visits.

Formula and methodological note

For marginal covariance V = A½R(α)A½, categorical-visit GEE information is D′V⁻¹D. The calculator combines group information at the allocation ratio and extracts covariance Σδ for the comparison-minus-reference difference profile. With baseline adjustment, C is the identity matrix; without baseline, C compares later differences with the first follow-up. Noncentrality per allocation unit is (Cδ)′(CΣδC′)⁻¹(Cδ), and power uses the corresponding noncentral chi-square distribution.

This version uses model-based planning covariance and assumes that the selected working correlation is correct. A subsequent robust-sandwich analysis does not protect planning from incorrect variance or correlation assumptions. It assumes a continuous outcome, common marginal SD, equally spaced visits, independent participants, and randomized groups for common-baseline adjustment. Dropout is recruitment inflation only. Irregular schedules, visit-specific variances, small-sample sandwich corrections, clusters beyond participants, and informative missingness are outside scope. This tool supports research planning and does not replace statistical consultation.

Technical results

Method references

  1. Rochon J. Application of GEE procedures for sample size calculations in repeated measures experiments. Stat Med. 1998;17:1643–1658.
  2. Liang KY, Zeger SL. Longitudinal data analysis using generalized linear models. Biometrika. 1986;73:13–22.
  3. Statsmodels developers. Generalized Estimating Equations and NormalIndPower documentation.

Suggested citation

Yaacob, Najib Majdi. “Sample Size for Two-Group GEE: Omnibus Group-by-Time Interaction (GEE-2G-I).” Web calculator. NajibMY, 2026. Accessed August 1, 2026. https://najibmy.netlify.app/tools/sample-size/clinical-complex-study-designs/gee-group-by-time-interaction/.