Skip to content

Power analysis

Sample size, effect size, and power calculations across 21 test families.

Narrated walkthrough: the sample size needed to compare two independent groups, from the effect size, significance level and power to the answer, 64 per group, with the curve that shows how power changes.

Plan studies with the right sample size before you collect data. Solve for the sample size, the power, the smallest detectable effect (sensitivity) or the required significance level.

  • t-tests: one-sample, paired, and independent groups
  • ANOVA: one-way, two-way (factorial), and repeated measures
  • Correlation, linear regression, and logistic regression
  • Proportions: one-sample and two-sample tests
  • Categorical: chi-square tests of association
  • Non-parametric: Mann-Whitney U, Wilcoxon signed-rank, Kruskal-Wallis
  • Survival: log-rank and Cox proportional hazards
  • Cluster-randomized trials and mixed-effects designs (simulation-based)
  • Equivalence (TOST), non-inferiority, and group-sequential designs
  • Prediction-model sample size: the minimum number of participants to develop a clinical prediction model for a binary, continuous or time-to-event outcome (Riley et al.; the criteria of R’s pmsampsize)
  • Bayesian design: assurance (the probability of success averaged over a design prior), interim monitoring by predictive probability for single-arm and two-arm trials, borrowing from history with a power prior or a robust MAP prior, and dose finding with the continual reassessment method
  • RNA-seq: samples per group for a gene expression study at a false discovery rate, from a typical gene's mean count and biological variation (Hart et al. 2013; Liu & Hwang 2007). The Gene Expression studio plans from your own pilot's genes.

Choose the test first#

  1. What is your study testing?Pick one of eight common designs, such as Compare two groups or Time until an event, or choose from the full list of tests below them. Not sure which test? opens the Decision Guide, which asks a few questions without AI.
  2. What do you want to find?Power, the sample size, the smallest effect you can detect, or the significance level (α) you need.
  3. Your numbersEnter the effect size and the other values the chosen test needs.
Something missing?

Have a question these docs don’t answer? Email support@nexmetry.org and we’ll add a guide.