Why Sample-Size Sensitivity Matters
A sample-size calculation is conditional on its inputs. A planned treatment effect, endpoint variance, within-participant correlation, dropout rate, and analysis model may each be uncertain when a study is designed. A target calculated from one set of assumptions can therefore give a misleading impression of precision. Sensitivity analysis makes the dependence visible: it recalculates power or sample size under plausible alternative assumptions and identifies which assumptions have the greatest practical influence.
The aim is not to find a single “correct” sample size by varying numbers mechanically. Each scenario should correspond to a scientifically credible assumption, and the endpoint contrast and analysis model should remain aligned with the estimand. The earlier material on Fisher information provides a general route from model information to precision; here the emphasis is on how uncertainty in planning inputs changes that precision and the resulting enrollment target.
A Reference Calculation and Its Assumptions
Consider a balanced, two-arm comparison of a continuous endpoint. Let \(m\) be the number of evaluable participants per arm, let \(\delta\) be the absolute treatment contrast in endpoint units, and let \(v\) be the endpoint variance in each arm. Assume independent participants, a common variance in the two arms, equal allocation, and a test of a nonzero contrast. For this reference calculation, use a two-sided significance level \(\alpha=0.05\) and target power \(1-\beta=0.90\).
With a normal approximation, the standard error of the estimated treatment contrast is \(\sqrt{2v/m}\). The approximate sample-size formula follows by requiring the standardized contrast to equal the sum of the critical normal quantile and the target-power quantile. Here \(z_{1-\alpha/2}=1.960\) and \(z_{1-\beta}=1.282\), so their sum is \(c=3.242\).
This is an approximation for a normal test with the stated variance and contrast assumptions. It is not an exact finite-sample calculation for a \(t\)-test with variance estimated from the data; when sample sizes are small or an exact analysis is required, power should be computed for the planned test or model. The formula also presumes the chosen \(\delta\) is the effect relevant to the estimand, not simply the largest effect considered plausible.
How Input Changes Propagate to Sample Size
The formula gives useful directional checks before any arithmetic. Required evaluable sample size is proportional to variance and to \(c^2\), and inversely proportional to the squared treatment effect. Consequently, a modest reduction in the assumed effect can have a substantial impact, while a proportional increase in variance produces the same proportional increase in the unrounded sample size. These relationships help identify which assumptions deserve careful justification.
Worked Example: Sensitivity to the Treatment Effect
Suppose a hypothetical continuous endpoint has common variance \(v=80\) endpoint-units squared. The planned contrast is \(\delta=5\) endpoint units, with \(\alpha=0.05\), 90% power, equal allocation, and the normal approximation above. Find the target per arm, then assess what happens if the plausible contrast is only 4 units.
For \(\delta=5\), substitute \(v=80\) and \(c=3.242\):
The evaluable target is rounded up to 68 participants per arm, or 136 in total. Rounding up, rather than to the nearest integer, ensures the integer target is not below the calculated requirement.
If the contrast is \(\delta=4\) units and the other inputs are unchanged:
This scenario requires 106 evaluable participants per arm. The unrounded sample-size ratio is \(105.10564/67.2676096=25/16=1.5625\), because sample size varies inversely with \(\delta^2\). Thus, reducing the assumed effect from 5 to 4 units increases the unrounded requirement by 56.25%. This is a sensitivity comparison, not evidence that either effect is more likely.
Correlation and Endpoint Variance
A correlation assumption can affect power through the variance of the endpoint contrast. For example, suppose the planned endpoint is the average of two measurements for each participant, each with marginal variance \(\sigma^2\), and the within-participant correlation between the measurements is \(\rho\). The variance of that average is
This expression follows from the variance of a sum: \(\operatorname{Var}(Y_1+Y_2)=\operatorname{Var}(Y_1)+\operatorname{Var}(Y_2)+2\operatorname{Cov}(Y_1,Y_2)\), with \(\operatorname{Cov}(Y_1,Y_2)=\rho\sigma^2\). It applies to this particular average-of-two endpoint. A different endpoint definition, such as a change score, has a different variance formula; the relevant covariance structure must match the planned endpoint and model.
Worked Example: Correlation and Dropout Scenarios
In a hypothetical study, each participant’s endpoint is the average of two measurements with marginal variance \(\sigma^2=100\) units squared. Use the balanced design and reference test above, with a treatment contrast of \(\delta=5\) units. Assume a 10% dropout rate that is equal across arms and independent of outcomes. Compare \(\rho=0.20\) with \(\rho=0.70\).
At \(\rho=0.20\), the endpoint variance is \(v=100(1+0.20)/2=60\) units squared. The evaluable target per arm is
Round up to 51 evaluable participants per arm. To allow for 10% dropout, divide by the expected evaluable fraction, \(1-0.10=0.90\): \(51/0.90=56.6667\). Therefore, enroll 57 participants per arm, or 114 total.
At \(\rho=0.70\), \(v=100(1+0.70)/2=85\) units squared. Then
This gives 72 evaluable participants per arm. Inflating for dropout gives \(72/0.90=80\), so the enrollment target is 80 per arm, or 160 total. The higher correlation increases the variance of this average-of-two endpoint, and hence its sample-size requirement. The direction is specific to this endpoint definition; it should not be generalized to every longitudinal contrast.
The dropout inflation assumes the retained participants still provide the planned information and that dropout does not change the treatment contrast or endpoint variance among those analyzed. If dropout is informative, differs by arm, or affects the planned estimand or analysis, simple division by the retention fraction may not preserve power.
Model Structure Is a Planning Input
Sensitivity analysis should include plausible analysis structures when they imply different precision for the same estimand. For instance, an endpoint analyzed as an unadjusted change score may have a different variance from the treatment contrast estimated with baseline adjustment. The comparison is meaningful only if both analyses target the same contrast and their variance assumptions are justified. A more elaborate model is not automatically more precise: precision depends on the covariance structure, design, and assumptions used to estimate the contrast.
The following hypothetical comparison holds the contrast and test fixed and treats the variance values as planning inputs. It illustrates the impact of a 20% reduction in contrast variance under a baseline-adjusted model; it does not establish that this reduction will occur in an actual study.
Worked Example: Change-Score and Baseline-Adjusted Models
Suppose the contrast is \(\delta=5\) endpoint units, with the same two-sided 5% test and 90% target power. A change-score model is planned with contrast variance \(v=80\) units squared per arm. A plausible baseline-adjusted model has variance \(v=64\) units squared per arm. Calculate and compare the requirements.
For the change-score model:
so the target is 68 evaluable participants per arm. For the baseline-adjusted model:
so the target is 54 evaluable participants per arm. The unrounded requirement falls by 20%, matching the reduction in \(v\). The comparison is valid only if the variance inputs are credible for the respective models and both analyses estimate the same treatment contrast. In particular, the planning variance for baseline adjustment depends on the baseline–outcome relationship and the model specification.
A Practical Sensitivity Workflow
A useful analysis starts from a reference case and varies one input at a time to diagnose its effect. It then combines important uncertainties into coherent scenarios, such as a conservative effect paired with a higher variance and a higher dropout rate. One-at-a-time changes help explain what drives the calculation; combined scenarios show whether a plausible joint set of assumptions would make the plan unacceptable. The scenario values, rounding rule, and whether sample size refers to evaluable participants or enrollment should be stated explicitly.
Specify the estimand contrast, endpoint scale, allocation, type I error, target power, and planned analysis model.
List plausible ranges for treatment effect, variance, correlation, dropout, and model-dependent precision. Support ranges with relevant prior evidence or design knowledge.
Change the intended input or scenario, preserve the stated design assumptions, and calculate power or sample size using the method appropriate to the planned analysis.
Round evaluable targets up, apply a justified retention adjustment, and report how the resulting target changes across scenarios.
Diagnostics, Alternatives, and Limitations
Several checks help reveal a fragile or internally inconsistent calculation. First, verify directions: under the reference model, larger variance or smaller absolute treatment effect must not reduce the required sample size. Second, check units: \(v\) has squared endpoint units and \(\delta^2\) has the same units, leaving \(m\) dimensionless. Third, verify the relationship between evaluable and enrollment targets; enrollment must be at least as large as the evaluable target. Finally, compare outputs with a validated power implementation for the actual planned model when the normal approximation may be inadequate.
A common mistake is to treat an assumed dropout percentage as if it only changed enrollment, even when dropout may be related to outcome, treatment, or time. The simple inflation \(m/(1-q)\) is justified only when the assumed retention fraction is a suitable approximation and losses do not otherwise alter the analysis information or estimand. A second mistake is to select the sample size from the most favorable scenario. A plan should be evaluated against the range of plausible assumptions and the consequences of missing its target.
Scenario analysis is transparent and easy to communicate, but it does not express the probability of each input value. A probabilistic sensitivity analysis can assign distributions to uncertain inputs and summarize the resulting distribution of power or required sample size; those distributions require defensible justification and do not eliminate structural uncertainty. A conservative single scenario is simpler, but may be unnecessarily large or fail to reflect which combinations of assumptions are plausible. For complex longitudinal models, simulation can estimate operating characteristics under the planned analysis, including features that a closed-form approximation cannot represent. Each approach has limitations: scenario grids depend on chosen values, probabilistic analyses depend on input distributions, and simulations depend on the data-generating and analysis models implemented.
Check Your Understanding
Answer each question using the reference assumptions where specified. Solutions are included below.
- If \(v\) increases by 25% while all other inputs stay fixed, what happens to the unrounded sample size?
- With fixed variance, what is the unrounded sample-size multiplier when the assumed absolute treatment effect changes from 6 units to 3 units?
- A calculation requires 45 evaluable participants per arm and assumes 10% independent dropout. What enrollment target per arm follows after rounding up?
- Does a scenario grid showing three sample sizes show the probability that each scenario will occur? Explain.
Solutions. (1) The unrounded sample size increases by 25%, because \(m\) is proportional to \(v\). (2) It is \((6/3)^2=4\), because \(m\) is inversely proportional to \(\delta^2\). (3) \(45/(1-0.10)=50\), so enroll 50 per arm, provided the dropout assumptions justify this inflation. (4) No. A scenario grid compares conditional results; probabilities require an explicit probabilistic model for the uncertain inputs.