Mixed Models for Repeated Measures | MMRM-NI-T

Sample Size for MMRM Non-Inferiority at a Specified Visit

Plan a two-group parallel trial to show that the experimental treatment is not worse than the reference by more than a prespecified margin at one target visit.

1. Estimand and non-inferiority hypothesis

Measurements after this visit are not used to size this target-visit estimand.

Enter the expected signed difference on the outcome scale.

This determines the signed null boundary while keeping the entered margin positive.

Enter a positive clinical margin. Do not add a minus sign.

Derived target-visit hypothesis

H0: delta >= 0.300; H1: delta < 0.300, where delta = experimental - reference.

2. Repeated-measure and retention assumptions

Enter conditional residual SDs after covariate adjustment and the expected proportion observed at each visit. Retention must not increase over time.

VisitConditional outcome SDReference retention (%)Experimental retention (%)

3. Operating characteristics

The selected alpha applies to the prespecified non-inferiority tail.

Enter 1 for 1:1, 2 for 2:1, and so on. Exact whole-number allocation is preserved.

Baseline outcome only = 1. A k-level factor contributes k - 1 columns.

Applied after MMRM retention has already been modelled; do not count the same missingness twice.

4. Results

Enter the MMRM assumptions and select Calculate sample size.

Formula, assumptions, limitations, validation, privacy, and references

Scope and estimand

For a continuous outcome analyzed using a categorical-visit MMRM.

The estimand is the experimental-minus-reference adjusted mean difference at one prespecified post-baseline visit. Measurements after the target visit are excluded from planning.

Method

Let delta be experimental minus reference and M be the positive maximum acceptable loss. For higher-favorable outcomes the null boundary is -M; for lower-favorable outcomes it is +M. The calculator transforms the distance from that boundary to a favorable positive scale, then uses Tang's expected REML/Kenward-Roger variance, Satterthwaite degrees of freedom, and exact one-sided noncentral-t power. Complete allocation blocks are searched until corrected power first reaches the target.

At analysis, non-inferiority corresponds to the lower one-sided confidence bound exceeding -M when higher values are favorable, or the upper one-sided confidence bound falling below +M when lower values are favorable.

Assumptions and limitations

  • Two independent randomized parallel groups and continuous approximately Gaussian outcomes.
  • A common, correctly specified covariance matrix and monotone missing-at-random planning conditional on observed model variables.
  • REML estimation with Kenward-Roger variance and degrees-of-freedom adjustment.
  • The margin must be clinically justified independently of the expected effect. Constancy and assay sensitivity remain study-specific.
  • Nonadherence and protocol deviations can bias a non-inferiority conclusion. The protocol should prespecify appropriate intention-to-treat and per-protocol analysis strategies and reconcile materially different results.
  • The endpoint, target visit, favorable direction, margin, analysis population, intercurrent-event strategy, and missing-data sensitivity analyses must be prespecified.
  • Not for equivalence, superiority, clusters, more than two groups, non-Gaussian outcomes, average-across-visit effects, or omnibus treatment-by-time tests.

This tool supports research planning and does not replace statistical consultation or regulatory advice.

Independent validation

The non-inferiority transformation and noncentral-t probabilities are checked against independent R calculations. The shared MMRM information engine reproduces Tang (2018) target-visit examples across unstructured, compound-symmetry, AR(1), and Toeplitz covariance matrices. A separate R validation fits simulated longitudinal trials with the independently maintained mmrm package.

Technical results

Privacy

Calculations run entirely in your browser. No study assumptions or results are uploaded or stored by this calculator.

References

  1. Tang Y. Closed-form REML estimators and sample size determination for mixed effects models for repeated measures under monotone missingness. Statistics in Medicine. 2017;36:2135-2147. doi:10.1002/sim.7270.
  2. Tang Y. A noniterative sample size procedure for tests based on t distributions. Statistics in Medicine. 2018;37:3197-3213. doi:10.1002/sim.7807.
  3. FDA. Non-Inferiority Clinical Trials to Establish Effectiveness: Guidance for Industry. 2016.
  4. EMA. Guideline on the choice of the non-inferiority margin. 2005.
  5. ICH E9(R1). Addendum on estimands and sensitivity analysis in clinical trials. 2019.

Suggested citation

Yaacob, Najib Majdi. "Sample Size for MMRM Non-Inferiority at a Specified Visit." Web calculator. NajibMY, 2026. Accessed August 18, 2026. http://127.0.0.1:4321/tools/sample-size/clinical-complex-study-designs/mmrm-non-inferiority-at-specified-visit/.