Power Analysis with G*Power Explained with a Clinical Example – A Complete Guide

Power analysis in G*Power: power curve and required sample size of 57 per group for a hypothetical clinical trial

Every clinical study must answer one question before the first patient is recruited: how many participants are needed? A study that is too small can miss a real treatment effect. The power analysis is the standard method for answering this question. It links the expected effect size, the significance level, the desired power and the sample size. A common mistake is to choose the sample size from convenience or from a previous study without a formal calculation. This guide explains power analysis in simple steps, using G*Power and one hypothetical clinical trial.

Free tool: calculate the sample size or power for your study with the StatisMed sample size calculator. It shows the exact R code and ready-to-use wording for your Methods section. Open the calculator →

What Is Power Analysis?

Statistical power is the probability that a study detects an effect when the effect truly exists. In other words, power equals 1 − β, where β is the probability of a type II error (a false-negative result). A power analysis uses four quantities: the effect size, the significance level (α), the power and the sample size. When three of them are fixed, the fourth one can be calculated (Kang, 2021). Our article on sample size in research describes the general factors.

A Priori Power Analysis

An a priori power analysis is performed before data collection. The researcher sets the effect size, α and power, and the analysis gives the required sample size. Therefore, it is the main focus of this guide.

Sensitivity Power Analysis

A sensitivity power analysis is used when the sample size is already fixed, for example in a retrospective study of all available records. The researcher sets α, power and the available sample size, and the analysis gives the smallest effect size that the study can reliably detect.

Post Hoc (Observed) Power Analysis

A post hoc power analysis calculates power from the observed effect after the study is completed. However, observed power is a direct function of the p-value, so it adds no new information. Notably, most statisticians advise against reporting it.

Importance of Power Analysis in Medical Research

Avoiding Underpowered Studies

An underpowered study has a high risk of a false-negative result. As a result, an effective treatment may be wrongly judged as ineffective.

Ethical and Cost Considerations

Recruiting too few patients exposes them to research risks without a useful answer. In contrast, recruiting too many patients exposes extra people to a possibly inferior treatment. A correct power analysis protects both the participants and the research budget (Serdar et al., 2021).

Requirements of Journals and Ethics Committees

Reporting guidelines such as CONSORT ask authors to explain how the sample size was determined. In addition, most ethics committees and grant reviewers require a written sample size justification in the protocol. Our beginner’s guide to statistics for clinical trials describes the other parts of the statistical plan.

Applications of Power Analysis in Clinical Studies

Randomized Controlled Trials

In a randomized controlled trial, the power analysis is based on the primary outcome. For a continuous outcome, such as blood pressure, the calculation uses the expected mean difference and standard deviation. For a binary outcome, such as cure rate, it uses the two expected proportions.

Observational and Epidemiological Studies

Cohort and case-control studies also need a power analysis. In these designs, the calculation is often based on the expected odds ratio or relative risk.

Diagnostic Accuracy and Survey Studies

Diagnostic studies calculate the sample size needed to estimate sensitivity and specificity with an acceptable precision. Similarly, prevalence surveys aim for a narrow 95% confidence interval.

Assumptions of Power Analysis

A power analysis gives a correct sample size only when its inputs are reasonable. The main assumptions are:

  • The statistical test in the power analysis is the same test planned for the primary outcome.
  • The expected effect size is based on previous studies, a pilot study or the minimal clinically important difference.
  • The standard deviation (or the control-group proportion) is realistic for the study population.
  • The significance level and the type of test (one-sided or two-sided) are fixed in advance.
  • The observations are independent, unless a paired or clustered design is planned.
  • The expected dropout rate is added after the calculation.

How to Perform A Priori Power Analysis in G*Power: A Clinical Example

Consider a hypothetical randomized trial in adults with uncontrolled hypertension. The trial compares a new antihypertensive drug with standard treatment. The primary outcome is the reduction in systolic blood pressure (SBP) after 12 weeks. G*Power is a free power analysis calculator that covers most tests used in medical research.

Step 1: Define the Primary Outcome and the Statistical Test

The primary outcome is continuous, and the two groups are independent. Therefore, the planned test is the independent-samples t-test. Our guide on t-test vs ANOVA explains how to choose between these tests.

Step 2: Choose the Expected Effect Size

Suppose that a previous trial found a mean difference of about 8 mmHg, with a standard deviation of 15 mmHg. Moreover, the investigators consider 8 mmHg as the minimal clinically important difference. Cohen’s d is the mean difference divided by the standard deviation: d = 8 / 15 = 0.53. Our article on effect size explains Cohen’s d in more detail.

Input Value Source
Expected mean difference 8 mmHg Previous trial and clinical judgment
Standard deviation 15 mmHg Previous trial
Effect size (Cohen’s d) 0.53 8 / 15
Significance level (α) 0.05, two-sided Convention
Power (1 − β) 0.80 Convention
Allocation ratio 1:1 Study design

Table 1. Inputs of the a priori power analysis (hypothetical trial).

Step 3: Set the Significance Level and the Power

The significance level is usually 0.05, two-sided. The power is usually 0.80 or 0.90. A power of 0.80 accepts a 20% risk of missing the true effect. Our article on the significance of p-values explains the meaning of α.

Step 4: Enter the Values in G*Power

In G*Power, select Test family: t tests and Statistical test: Means: Difference between two independent means (two groups). Then select Type of power analysis: A priori. Enter Tail(s) = Two, Effect size d = 0.53, α err prob = 0.05, Power = 0.80 and Allocation ratio N2/N1 = 1.

Step 5: Read the Output

After clicking Calculate, G*Power reports a sample size of 57 patients per group, or 114 in total. The actual power with this sample is 0.806. In addition, the output shows the critical t value (1.98) and df = 112.

Step 6: Check How the Inputs Change the Sample Size

The required sample size is very sensitive to the effect size. Table 2 shows the sample size per group for different values of d. Notably, if the true difference is 6 mmHg instead of 8 mmHg (d = 0.40), the trial needs 100 patients per group. Similarly, a standard deviation of 18 mmHg instead of 15 mmHg increases the requirement to 81 per group.

Effect size (d) n per group (power 0.80) n per group (power 0.90)
0.30 176 235
0.40 100 133
0.50 64 86
0.53 (this trial) 57 75
0.60 45 60
0.80 26 34

Table 2. Sample size per group for an independent-samples t-test (two-sided α = 0.05).

Step 7: Adjust for Dropout

Some patients will not complete follow-up. With an expected dropout rate of 10%, the sample size is divided by 0.90: 57 / 0.90 = 63.3, rounded up to 64 per group. Therefore, the trial should randomize 128 patients. Our guide on intention-to-treat analysis explains how randomized patients who drop out are handled in the analysis.

How to Report Power Analysis Results in a Manuscript

The power analysis belongs to the Methods section, under a “Sample size” subheading. It should give every input, so that a reviewer can repeat the calculation:

Sample Size Calculation
The sample size was calculated with G*Power version 3.1 for an independent-samples t-test. Assuming a mean difference in SBP reduction of 8 mmHg and a standard deviation of 15 mmHg (d = 0.53), a two-sided α of 0.05 and a power of 0.80, 57 patients per group were required. Allowing for a 10% dropout rate, 64 patients per group (128 in total) were randomized.

Suppose that 60 patients in the new drug group and 59 patients in the standard group completed the hypothetical trial. The Results section should then present the significant findings, as shown below:

Reduction in Systolic Blood Pressure at 12 Weeks
The mean reduction in SBP was 14.6 mmHg (SD = 14.2) in the new drug group and 6.8 mmHg (SD = 15.1) in the standard treatment group. The reduction was significantly greater with the new drug (MD = 7.8 mmHg, 95% CI, 2.5 to 13.1, p = 0.004, d = 0.53). Moreover, the target SBP below 140 mmHg was achieved by 38 patients (63.3%) in the new drug group compared to 24 patients (40.7%) in the standard treatment group (OR = 2.52, 95% CI, 1.20 to 5.27, p = 0.013). (Table 3)

Outcome New drug (n = 60) Standard (n = 59) Effect (95% CI) p-value
SBP reduction, mmHg, mean (SD) 14.6 (14.2) 6.8 (15.1) MD = 7.8 (2.5 to 13.1) 0.004
Target SBP < 140 mmHg, n (%) 38 (63.3) 24 (40.7) OR = 2.52 (1.20 to 5.27) 0.013

Table 3. Primary and secondary outcomes at 12 weeks (hypothetical trial).

Notably, the interpretation of these findings and the comparison with previous trials belong to the Discussion section, not to the Results. The mean difference was compared with the t-test, and the proportions were compared with the chi-square test.

Common Mistakes When Using Power Analysis

Using an Unrealistic Effect Size

Some researchers choose a large effect size because it gives a small sample. However, if the true effect is smaller, the study will be underpowered. The expected effect should come from previous evidence or from the minimal clinically important difference, not from the available budget.

Calculating Post Hoc Power After a Non-Significant Result

Observed power is calculated from the observed effect, so a non-significant result always gives low observed power. Therefore, it cannot explain a negative finding. Instead, the 95% confidence interval of the effect should be reported. Our article on confidence intervals explains this approach.

Choosing the Wrong Test in G*Power

The power analysis must match the planned analysis. For example, a before-and-after design uses the paired t-test, which needs fewer patients than the independent-samples t-test.

Forgetting the Dropout Adjustment

The calculated sample size refers to patients who complete the study. If dropout is ignored, the final sample is smaller than planned, and the power falls below 0.80. Multiple imputation handles missing data, but it does not replace this adjustment.

Using a One-Sided Test Without Justification

A one-sided test reduces the sample size. In this example, it gives 45 instead of 57 patients per group. However, a one-sided test is acceptable only when an effect in the opposite direction is truly irrelevant, and it must be stated in the protocol.

Running Power Analysis in SPSS and R

G*Power is the most common free tool, as shown above. In SPSS version 27 or later, choose Analyze → Power Analysis → Means → Independent-Samples T Test. Then select “Estimate sample size”, enter power = 0.80, the two population means, the pooled standard deviation of 15 and α = 0.05. In R, the pwr package gives the same result in one line: pwr::pwr.t.test(d = 8/15, sig.level = 0.05, power = 0.80), which returns n = 56.2 per group (rounded up to 57).

Conclusion

Power analysis is the correct method for deciding the sample size of a clinical study before data collection. It combines the expected effect size, the significance level and the desired power. Moreover, the effect size should be based on previous evidence, and the result should be increased for the expected dropout. In contrast, post hoc power should not be used to explain a non-significant result.

If you need support in calculating the sample size for your protocol or analyzing your trial data, the StatisMed team of biostatisticians provides statistical analysis services for medical studies. You can request a free quote today.

Frequently Asked Questions

1. What is the difference between power analysis and sample size calculation?

Sample size calculation is one type of power analysis. An a priori power analysis gives the sample size from the effect size, α and power. In contrast, a sensitivity power analysis gives the smallest detectable effect from a fixed sample size.

2. Is a power of 0.80 enough?

A power of 0.80 is the accepted minimum in most medical studies. However, a power of 0.90 is preferred for confirmatory trials. In this example, it increases the sample size from 57 to 75 patients per group.

3. Is G*Power free, and which tests does it cover?

Yes, G*Power is a free power analysis calculator for Windows and macOS. It covers t-tests, ANOVA, chi-square tests, correlation, linear and logistic regression and several non-parametric tests (Kang, 2021). For survival analysis and complex designs, a medical statistician can help with the calculation.

References

Kang, H. (2021). Sample size determination and power analysis using the G*Power software. Journal of Educational Evaluation for Health Professions, 18, 17. https://doi.org/10.3352/jeehp.2021.18.17

Serdar, C. C., Cihan, M., Yücel, D., & Serdar, M. A. (2021). Sample size, power and effect size revisited: Simplified and practical approaches in pre-clinical, clinical and laboratory studies. Biochemia Medica, 31(1), 010502. https://doi.org/10.11613/BM.2021.010502

Related Posts