# Lesson 6: Sample Size and Power - Part A

### Introduction

The underlying theme of sample size calculation in all clinical trials is ** precision**. Validity and unbiasedness do not necessarily relate to sample size.

Usually, sample size is calculated with respect to two circumstances. The first involves** precision for an estimator**, e.g., requiring a 95% confidence interval for the population mean to be within ± δ units. The second involves

**e.g., requiring 0.80 or 0.90 statistical power (1-β) for a hypothesis test when the significance level (α) is 0.05 and the effect size (the clinically meaningful effect) is Δ units.**

*statistical power for hypothesis testing*,The formulae for many sample size calculations will involve percentiles from the standard normal distribution. The graph below illustrates the 2.5^{th} percentile and the 97.5^{th} percentile.

**Fig. 1 Standard normal distribution centered on zero.**

For a two-sided hypothesis test with significance level α and statistical power 1 - β, the percentiles of interest are z _{(1-α/2)} and z_{ (1 - β)}.

For a one-sided hypothesis test, z_{ (1 - α)} is used instead. Usual choices of α are 0.05 and 0.01, and usual choices of β are 0.20 and 0.10, so the percentiles of interest usually are:

\( z_{0.995} = 2.58, z_{0.99} = 2.33, z_{0.975} = 1.96, z_{0.95} = 1.65, z_{0.90} = 1.28, z_{0.80} = 0.84 \).

In SAS, the PROBIT function is available to generate percentiles from the standard normal distribution function, e.g., Z = PROBIT(0.99) yields a value of 2.33 for Z. So, if you ever need to generate z-values you can get SAS to do this for you.

It is important to realize that sample size calculations are approximations. The assumptions that are made for the sample size calculation, e.g., the standard deviation of an outcome variable or the proportion of patients who succeed with placebo, may not hold exactly.

Also, we may base the sample size calculation on a t statistic for a hypothesis test, which assumes an exact normal distribution of the outcome variable when it only may be approximately normal.

In addition, there will be loss-to-follow-up, so not all of the subjects who initiate the study will provide complete data. .Some will deviate from the protocol, including not taking the assigned treatment or adding on a treatment. Sample size calculations and recruitment of subjects should reflect these anticipated realities.

Learning objectives & outcomes

Upon completion of this week's lessons, you should be able to do the following:

- Identify studies for which sample size is an important issue.
- Estimate the sample size required for a confidence interval for p for given δ and α, using normal approximation and Fisher's exact methods.
- Estimate the sample size required for a confidence interval for μ for given δ and α, using normal approximation when the sample size is relatively large.
- Estimate the sample size required for a test of H
_{0}: μ_{1}= μ_{2}to have (1 - β) % power for given δ and α, using normal approximation, with equal or unequal allocation. - Estimate the sample size required for a test of H
_{0}: p_{1}= p_{2}for given δ and α and β, using normal approximation and Fisher's exact methods. - Use a SAS program to estimate the number of events required for a logrank comparison of two hazard functions to have (1 - β) % power with given α
- Use Poisson probability methods to determine the cohort size required to have a certain probability of detecting a rare event that occurs at a rate = ξ.
- Adjust sample size requirements to account for multiple comparisons and the anticipated withdrawal rate.

References:

Friedman, Furberg, DeMets, Reboussin and Granger. (2015) Sample size. In: FFDRG. * Fundamentals of Clinical Trials.* 5th ed. Switzerland: Springer.

Piantadosi Steven. (2005) Sample size and power. In: Piantadosi Steven. ** Clinical Trials: A Methodologic Perspective.** 2nd ed. Hoboken, NJ: John Wiley and Sons, Inc.

Wittes, Janet. (2002) "Sample Size Calculations for Randomized Controlled Trials." Epidemiologic Reviews. Vol. 24. No 1. pp. 39-53.