Tutorials › Adaptive Clinical Trial Design › Calibrating Sample Size Rules To A Type I Error Target

Sample Size Re-Estimation · Tutorial 349 of 799

Calibrating Sample Size Rules To A Type I Error Target

Use simulation to tune a sample-size re-estimation rule against a prespecified Type I error target and assess whether its apparent control is robust to nuisance-parameter choices.

Advanced 12 min read

What You'll Learn

  • Define Type I error control for a sample-size rule over a prespecified set of nuisance-parameter values.
  • Simulate the full adaptive procedure, including the final test, under the null hypothesis.
  • Estimate a simulated rejection rate and quantify its Monte Carlo uncertainty.
  • Compare candidate re-estimation thresholds and maximum sample sizes using a prespecified calibration criterion.
  • Distinguish evidence from simulation from a mathematical guarantee of error control.
  • Identify scenarios, implementation details, and diagnostics that can undermine calibration.

Why Calibrate a Re-Estimation Rule?

A sample-size update is part of the statistical procedure, not merely an operational choice. The update rule can change which data are collected and how the final test behaves. A test that has Type I error \(\alpha\) at a fixed sample size does not automatically retain that error rate when the sample size is selected using interim data. Calibration asks whether a prespecified rule, followed by its intended final analysis, rejects the null hypothesis at an acceptable rate when the null is true.

The check must cover more than one convenient simulated setting. Variance, event rate, intracluster correlation, missingness, and other nuisance parameters can affect the update and the final test. The relevant question is whether the rule controls Type I error across the plausible null scenarios the design is intended to cover. Simulation provides numerical evidence for those specified scenarios; it does not prove control for every possible value.

Definition: For a null hypothesis \(H_0\), the Type I error rate of an adaptive design at nuisance value \(\eta\) is \(P(\text{reject } H_0 \mid H_0,\eta)\), where the probability includes all random outcomes and the complete sample-size re-estimation procedure. A rule is calibrated to target \(\alpha\) over a specified nuisance set \(\mathcal{E}\) when these rates meet a prespecified control criterion for the values \(\eta\in\mathcal{E}\).

In this tutorial, the examples use a two-sided test with target \(\alpha=0.05\). The same calibration logic applies to other endpoints and test procedures, provided the simulation reproduces the planned design and analysis. Earlier material on simulating sample-size re-estimation, operating characteristics, and stress-testing assumptions supplies the general simulation framework; the emphasis here is on selecting a rule against a Type I error target.

Specify the Whole Procedure Before Simulating

A valid calibration simulation has to represent what would actually happen in the trial. That means specifying the null data-generating model, the interim information used by the rule, the candidate threshold or cap, and the final test. Simulating a sample-size formula alone cannot estimate Type I error.

For a concrete illustration, suppose each arm has 40 participants at the interim analysis. The endpoint is continuous, normally distributed with common standard deviation \(\sigma\), and the treatment and control means are equal under \(H_0\). Let \(s_{T1}^2\) and \(s_{C1}^2\) be the interim sample variances. Define the pooled interim variance estimate by

$$ S_1^2=\frac{39s_{T1}^2+39s_{C1}^2}{78}. $$

For a candidate variance threshold \(v\), the rule is: retain 40 participants per arm if \(S_1^2\leq v\); otherwise add 40 per arm, for a final sample of 80 per arm. The final analysis is the ordinary two-sided pooled two-sample \(t\)-test using all observations, with its usual pooled variance estimate and degrees of freedom \(n_T+n_C-2\). The rule and test together define the procedure whose Type I error is being assessed.

For this illustration, take the nuisance set to be \(\sigma=10,12,14\) endpoint units. These are hypothetical values chosen to represent plausible variability for a design whose planning standard deviation is about 12 units. Under each value, generate data under equal treatment and control means, apply the update rule, and run the specified final test. Every replicate must include both the interim and any additional observations. Using an unchanging sample size in the simulation, or applying a different final test from the protocol, answers a different question.

Calibration principle: For every candidate rule, estimate the null rejection probability over a prespecified set of nuisance scenarios. Use the largest relevant rate, together with its Monte Carlo uncertainty, to assess the rule against a prespecified tolerance. Do not choose a threshold solely because its simulated rate happens to be closest to \(\alpha\).

Estimating Type I Error and Its Simulation Uncertainty

For a fixed nuisance scenario and a fixed candidate rule, let \(R\) be the number of simulated trials and let \(I_j=1\) if replicate \(j\) rejects \(H_0\), and \(I_j=0\) otherwise. The estimated Type I error rate is the mean of these indicators:

$$ \hat{\alpha}_{\mathrm{sim}}=\frac{1}{R}\sum_{j=1}^{R} I_j. $$

Under independent simulation replicates, the indicators are Bernoulli with rejection probability \(\alpha_{\mathrm{true}}\). Therefore,

$$ SE(\hat{\alpha}_{\mathrm{sim}})\approx \sqrt{\frac{\hat{\alpha}_{\mathrm{sim}}(1-\hat{\alpha}_{\mathrm{sim}})}{R}}. $$

This standard error measures simulation noise, not uncertainty about the clinical endpoint model or the appropriateness of the nuisance scenarios. A rate close to 0.05 in a small simulation may be compatible with a materially higher true rejection probability. A calibration decision should therefore use enough replicates to make Monte Carlo uncertainty small relative to the tolerance being considered.

Worked Example: Quantifying Monte Carlo Uncertainty

Suppose a hypothetical simulation uses \(R=1{,}000{,}000\) null trials at \(\sigma=12\) units and a candidate threshold of \(v=168\) squared units. The final test rejects in 50,247 trials.

The estimated Type I error rate is

$$ \hat{\alpha}_{\mathrm{sim}}=\frac{50{,}247}{1{,}000{,}000}=0.050247. $$

Its estimated Monte Carlo standard error is

$$ SE\approx\sqrt{\frac{0.050247(1-0.050247)}{1{,}000{,}000}} =\sqrt{0.00000004772}\approx 0.0002185. $$

A rough two-sided 95% simulation interval is \(0.050247\pm1.96(0.0002185)\), or approximately \(0.04982\) to \(0.05067\). The point estimate is just above 0.05, but this interval includes 0.05. This result does not establish that the rule controls the rate at exactly 0.05; it shows that this simulation alone does not clearly distinguish the rate from the target at this precision.

Choosing a Threshold Across Nuisance Scenarios

A calibration criterion should be set before comparing candidates. For example, a design team might require the upper one-sided 95% simulation bound to be no greater than 0.051 in every scenario. The 0.001 allowance above the nominal 0.05 is an explicitly chosen numerical tolerance, not a redefinition of the target and not a guarantee. A stricter criterion requires more simulation or a rule whose rejection rates are lower.

For a quick illustration, an approximate upper one-sided 95% bound is

$$ U=\hat{\alpha}_{\mathrm{sim}}+1.645\,SE(\hat{\alpha}_{\mathrm{sim}}). $$

For final work, use a suitable binomial confidence bound, especially when the number of rejections is small or the estimated rate is near a boundary. If many candidate thresholds or nuisance scenarios are examined, account for that search in the calibration plan. One practical approach is to use exploratory simulations to select a candidate and then assess that candidate in a separate, prespecified validation simulation.

Worked Example: Screening Candidate Thresholds

Suppose one million hypothetical null trials are simulated for each combination of \(v\) and \(\sigma\), using the rule and final test described above. The following table gives illustrative rejection-rate estimates.

Threshold \(v\) (squared units)\(\sigma=10\)\(\sigma=12\)\(\sigma=14\)Largest estimate
1200.05080.05170.05220.0522
1440.05050.05090.05140.0514
1680.05020.05030.05040.0504
2000.04980.04990.04990.0499

At an estimated rate of 0.0504, the approximate Monte Carlo standard error is \(\sqrt{0.0504(0.9496)/1{,}000{,}000}\approx0.000219\). Its approximate upper one-sided bound is \(0.0504+1.645(0.000219)\approx0.05076\). Thus the \(v=168\) candidate meets the illustrative \(U\leq0.051\) criterion at the worst point estimate in the table. The \(v=144\) candidate does not: for its largest estimate, 0.0514, the corresponding upper bound is about \(0.05176\).

On this prespecified criterion, \(v=168\) is the lowest displayed threshold that passes. The simulations do not prove that the Type I error is below 0.051 for every possible \(\sigma\), only that the candidate passes the stated check at the three specified values with the stated approximate Monte Carlo allowance. A broader nuisance grid or independent validation may be needed before adoption.

Checking the Maximum Sample Size

The maximum sample size is also part of the rule. Changing it can change the distribution of the final statistic, so a threshold calibrated for one cap should not be assumed to work for another. Re-run the complete null simulation for each cap under consideration, keeping the interim rule and final analysis aligned with the proposed protocol.

Worked Example: Comparing Two Sample-Size Caps

Consider the \(v=168\) rule and compare two hypothetical caps: 60 or 80 participants per arm. In the smaller-cap version, an interim variance above the threshold adds 20 participants per arm; in the larger-cap version it adds 40. Suppose one million simulations per nuisance value yield the following illustrative estimates.

Maximum participants per arm\(\sigma=10\)\(\sigma=12\)\(\sigma=14\)Largest estimate
600.05000.05010.05020.0502
800.05020.05030.05040.0504

For the cap of 60, the largest point estimate has approximate standard error \(\sqrt{0.0502(0.9498)/1{,}000{,}000}\approx0.000218\). Its approximate upper bound is \(0.0502+1.645(0.000218)\approx0.05056\), which is below the illustrative limit of 0.051. The cap of 80 also passes that limit: its largest estimate has an approximate upper bound of about 0.05076.

Both options pass this particular error-rate check. The choice between them must also satisfy the trial’s power and operational requirements; passing a Type I error criterion alone does not establish that a design is adequate. If a cap changes, record it as a changed candidate rule and retain the matching simulation evidence.

Justification and Diagnostics

The Monte Carlo standard error follows directly from the variance of a Bernoulli indicator. Since \(I_j\) equals one with probability \(\alpha_{\mathrm{true}}\) and zero otherwise, its variance is \(\alpha_{\mathrm{true}}(1-\alpha_{\mathrm{true}})\). If the \(R\) simulation replicates are independent, the variance of their mean is the variance of one indicator divided by \(R\). Replacing the unknown rate with its estimate gives the standard error formula used above:

$$ \operatorname{Var}(\hat{\alpha}_{\mathrm{sim}}) =\frac{\operatorname{Var}(I_j)}{R} =\frac{\alpha_{\mathrm{true}}(1-\alpha_{\mathrm{true}})}{R} \quad\Longrightarrow\quad SE(\hat{\alpha}_{\mathrm{sim}})\approx \sqrt{\frac{\hat{\alpha}_{\mathrm{sim}}(1-\hat{\alpha}_{\mathrm{sim}})}{R}}. $$

Several checks help detect a simulation that is not answering the intended question. Confirm that the null is imposed exactly, the simulated randomization and allocation match the design, and every replicate applies the same interim calculation, update rule, and final test as the protocol. Check the number of trials and rejections, the distribution of selected sample sizes, and reproducibility from saved code and random-number seeds. Re-run a subset of scenarios independently; a discrepancy larger than expected Monte Carlo variation may indicate a coding error or unintended dependence among replicates.

Also examine values between the nuisance scenarios, not only the endpoints, when a rate could peak in the interior. A coarse grid can miss a maximum. If the rate is sensitive to a nuisance value, refine the grid around the concerning region. Include plausible departures from the primary model, such as non-normal outcomes or unequal variances, when they are relevant to the planned procedure. Stress scenarios do not replace the primary model; they reveal where calibration depends on its assumptions.

Alternatives, Limitations, and a Common Mistake

A fixed-sample design analyzed with its prespecified test is a useful benchmark: it avoids sample-size selection, though its power may not be satisfactory over the relevant nuisance range. An analytical argument can sometimes establish that an adaptation preserves the test’s null distribution under stated assumptions. When such a result applies to the exact rule and analysis, it can be stronger than a finite simulation. When it does not, simulation is a practical way to assess the complete procedure. A hybrid approach uses analytical reasoning to simplify or validate parts of the simulation and simulation to check the remaining adaptive behavior.

Simulation-based calibration has important limits. It assesses only the models, nuisance values, implementation, and number of replicates actually examined. A finite grid is not a proof over a continuous parameter space, and Monte Carlo bounds quantify simulation noise rather than model misspecification. Calibration also does not establish power, identify a clinically appropriate target, or guarantee that the design will remain valid if the implemented rule differs from the simulated one.

Common mistake: “The simulated rate is 0.0502, so the design has Type I error exactly 0.05.” The correction is that 0.0502 is an estimate with Monte Carlo uncertainty, and it applies only to the simulated rule and scenario. Report the number of replicates, uncertainty, nuisance conditions, and final analysis; then state the conclusion in terms of the prespecified criterion rather than claiming exact control.

Key takeaway: Calibrate the rule and final test as one procedure. Prespecify plausible null scenarios and a simulation tolerance, compare candidates using uncertainty-aware rejection rates, and validate the selected rule without mistaking finite simulation for a universal guarantee.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. In a simulation of 200,000 null trials, 10,260 reject. What is the estimated Type I error rate?
  2. Why must the simulation reproduce the final test as well as the sample-size update?
  3. A candidate has a largest estimated rejection rate of 0.0512, with estimated standard error 0.00022. Does it pass a criterion requiring the approximate upper one-sided 95% bound to be at most 0.051?
  4. What does passing a nuisance grid establish, and what does it not establish?

Solutions. (1) \(10{,}260/200{,}000=0.0513\), or 5.13%. (2) Type I error belongs to the complete procedure; the update determines the data collected, while the final test determines rejection, so omitting either can estimate a different rate. (3) The approximate upper bound is \(0.0512+1.645(0.00022)=0.05156\), so it fails the 0.051 criterion. (4) It provides simulation evidence for the specified nuisance values, rule, model, and final analysis, subject to Monte Carlo uncertainty; it does not prove control at every untested value or under unexamined models.

Clinical Biostats