Tutorials › Group Sequential Methods and Sample Size Re-Estimation › Translating Design Specifications Into Software Inputs

Software, Planning and Reporting · Tutorial 671 of 699

Translating Design Specifications Into Software Inputs

You will learn to map a specified group sequential design into clear, internally consistent software inputs without confusing design choices with quantities the software must calculate.

Intermediate 10 min read

What You'll Learn

  • Map maximum sample size or event count to maximum information under stated assumptions.
  • Convert planned information fractions into look-specific information and sample-size targets.
  • Specify the test direction, significance level, boundary family, and futility convention.
  • Distinguish software inputs from operating-characteristic targets used to assess a design.
  • Check units, ordering, and compatibility before running a group sequential calculation.

From a Design Specification to a Software Input

A design specification describes what a trial is intended to do; software requires that intention to be expressed in defined fields. A mismatch can be subtle: entering a two-sided significance level where a one-sided level is expected, or treating enrollment fractions as information fractions when follow-up and event rates vary. The earlier material on turning a trial objective into a design specification establishes the choices to be translated. Here the task is to encode those choices without silently changing the design.

The translation is not a matter of finding a single universal list of software arguments. Programs differ in their input conventions, and some ask for maximum sample size while others ask for maximum information or for a target power from which a maximum is calculated. The reliable approach is to identify the statistical meaning of each specified choice, determine the corresponding field in the chosen implementation, and record any conversion or assumption.

Definition: A software input is a value or option supplied to a group sequential calculation that determines the design or the model used to evaluate it. Examples include maximum information, planned look times, the significance level, and a boundary specification. An operating-characteristic target, such as desired power at a specified treatment effect, is a criterion the resulting design should meet; it may be an input to a sample-size search or a value used to check a design, depending on the software.

Specify the Statistical Scale Before Entering Values

Before entering numbers, state the analysis model and the scale on which information is measured. For a two-arm comparison of a continuous outcome, suppose participants are independently randomized equally between arms, outcomes are independent with common known variance \(\sigma^2\), and the treatment effect is the difference in population means. With \(N\) participants in total, the variance of the difference in sample means is \(4\sigma^2/N\). Thus the information for that contrast is \(I=N/(4\sigma^2)\). This conversion is appropriate only under these assumptions and with the stated definition of \(N\).

For other endpoints, information may not be proportional to the number enrolled. For example, in a balanced time-to-event comparison, the log-rank information is often approximated by \(D/4\), where \(D\) is the number of events. That approximation relies on approximately balanced allocation and risk sets; the analysis model and software may use a more detailed calculation. The units matter: information for a mean difference is in inverse squared outcome units, while information for a log hazard ratio is dimensionless.

Maximum sample size, maximum event count, and maximum information are therefore not interchangeable labels. If the specification gives one quantity and the software requests another, make the conversion under the stated model and retain the original quantity as a cross-check. If assumptions needed for conversion are uncertain, do not disguise the uncertainty by entering an apparently precise value.

Worked Example: Converting a Maximum Sample Size to Information

Suppose a hypothetical equally randomized trial plans no more than \(N=320\) participants for a continuous outcome. Assume independent outcomes with common standard deviation \(\sigma=12\) points in both arms, and use the two-sample mean-difference model just described. Translate the maximum sample size into maximum information and standard error.

The total sample size is 320, so there are 160 participants per arm. Under the assumptions, the variance of the estimated mean difference at the maximum sample size is

$$ \operatorname{Var}(\bar{x}_T-\bar{x}_C) =\frac{12^2}{160}+\frac{12^2}{160} =\frac{4(12^2)}{320} =1.8\ \text{points}^2. $$

The corresponding information is the reciprocal of this variance:

$$ I_{\max}=\frac{1}{1.8}=\frac{320}{4(12^2)} =\frac{320}{576}=0.5556\ \text{points}^{-2}, \qquad SE_{\max}=\frac{1}{\sqrt{I_{\max}}}=1.342\ \text{points}. $$

If the software requests maximum information, enter \(0.5556\ \text{points}^{-2}\), provided its information convention matches this model. If it requests total sample size, enter 320 instead. Do not enter 320 as information. The calculation assumes equal allocation, common variance, and complete outcome availability at the analysis; departures such as unequal allocation or substantial missing outcomes require an appropriate variance or information calculation.

Representing Planned Looks and Boundaries

A group sequential design has a finite set of planned analyses. Let \(K\) denote the number of looks, let \(I_k\) denote information at look \(k\), and let \(I_{\max}=I_K\). The information fraction is \(t_k=I_k/I_{\max}\). A valid schedule has \(0<t_1<\cdots<t_K=1\). Some software asks directly for the fractions \(t_k\); other software asks for \(I_k\), sample sizes, event counts, or analysis times. Convert only after checking which scale its field represents.

This distinction is important because a fraction of participants enrolled need not equal a fraction of information. It may be a good approximation for a simple fixed-size continuous-outcome design with stable variance and complete data. It is generally not safe to assume the same for an event-driven study, changing allocation, delayed outcome measurement, or substantial missingness. Look timing should be entered on the scale specified by the design, and its operational counterpart should be checked separately.

Boundary inputs describe how evidence is assessed across the looks. At minimum, specify whether the test is one-sided or two-sided, which direction of the statistic favors the treatment, the family of efficacy boundaries or the corresponding alpha-spending choice, and whether a futility boundary is used. A nominal significance level alone does not identify a sequential design: its error probability must be controlled over the planned sequence of analyses. If the implementation accepts a named boundary family, verify that the name refers to the intended convention. If it accepts an alpha-spending function instead, supply that function’s parameters and the look fractions required by that implementation. Do not enter both incompatible specifications as though they were independent choices.

Key distinction: A planned look schedule says when the statistic will be evaluated. An efficacy or futility boundary says what evidence at a look triggers a stopping recommendation. The significance level and boundary rule must be interpreted together; a list of look times by itself does not define the sequential test.

Worked Example: Translating Information Fractions into Look Targets

A hypothetical continuous-outcome design has the maximum sample size and variance from the previous example. It specifies three looks at information fractions \(0.40\), \(0.70\), and \(1.00\). Assume the same equal allocation, variance, and complete-data conditions at each look. Convert the fractions to information and total sample-size targets.

The maximum information is \(0.5556\ \text{points}^{-2}\). For each look, multiply this value by its information fraction:

$$ I_1=0.40(0.5556)=0.2222,\qquad I_2=0.70(0.5556)=0.3889,\qquad I_3=1.00(0.5556)=0.5556 \quad \text{points}^{-2}. $$

Under the model \(I=N/(4\sigma^2)\), the corresponding total sample-size targets are \(N_k=4\sigma^2I_k\). Equivalently, multiply the maximum sample size by each fraction:

$$ N_1=0.40(320)=128,\qquad N_2=0.70(320)=224,\qquad N_3=1.00(320)=320. $$

These are total participants, not participants per arm; equal allocation gives 64, 112, and 160 per arm at the respective looks. The schedule is internally consistent because its fractions increase and the final look is at the maximum. A software field labelled “information fraction” should receive \(0.40, 0.70, 1.00\), whereas a field requesting total sample sizes should receive 128, 224, 320.

Enter Operating-Characteristic Targets Without Changing Their Meaning

Operating characteristics summarize a design’s performance under specified parameter values. Common targets include type I error under \(H_0\) and power at a stated treatment effect under \(H_a\). To make these targets interpretable, specify the endpoint scale, the direction and size of the effect, and any nuisance parameters required by the assumed model. For a continuous outcome, for example, a mean difference must be given in outcome units, and the standard deviation must use the same units.

A target power is not itself a boundary. If maximum information is fixed in the specification, power at the target effect is usually something to calculate and compare with the target. If the software offers a search for maximum information or sample size, the target power and target effect may instead be inputs to that search. Record which mode is being used. Otherwise, a user can inadvertently ask the program to solve for a different design than the one specified.

Likewise, distinguish the nominal significance level from the achieved overall type I error. The nominal level is the requested error-control target for the sequential test; the achieved value is a property to verify under the stated null model and stopping rules. State whether alpha is one-sided or two-sided. A two-sided level of \(0.05\) is often represented as \(0.025\) in each tail, but a software field asking for “alpha” may expect either the total two-sided level or a one-sided tail level. Follow the documented convention and record it explicitly.

Worked Example: Encoding an Event-Driven Design

A hypothetical balanced time-to-event trial plans a maximum of 240 events, with analyses at 120, 180, and 240 events. The design uses a two-sided overall significance level of \(0.05\), targets 90% power for a hazard ratio of \(0.70\), and uses an efficacy boundary from a specified spending-based family. Translate this specification into generic input fields. Assume approximately balanced allocation and risk sets, and define the favorable direction as a positive statistic, so that the log hazard ratio is oriented as \(\log(HR_C/HR_T)\).

Under the balanced event-information approximation, maximum information is \(I_{\max}=D/4=240/4=60\) in inverse squared log-hazard-ratio units. The three event counts imply

$$ I_1=120/4=30,\qquad I_2=180/4=45,\qquad I_3=240/4=60, \qquad (t_1,t_2,t_3)=(0.50,0.75,1.00). $$

The generic entries are therefore: maximum events \(D_{\max}=240\) (or \(I_{\max}=60\) if information is required); look fractions \(0.50,0.75,1.00\) (or event targets \(120,180,240\)); two-sided alpha \(0.05\), entered according to the program’s convention; the stated efficacy-boundary family; and target power \(0.90\) at \(HR_T=0.70\), if the program supports that target as an input. Under the stated statistic orientation, \(HR_T=0.70\) corresponds to \(\log(HR_C/HR_T)=\log(1/0.70)=0.3567\), a positive effect in the favorable direction.

The power target is a check if the maximum of 240 events is fixed; it is a search criterion only if the software is explicitly asked to find a maximum event count. The event-information approximation depends on balanced allocation and risk sets, so the user should verify that the chosen analysis and software use a compatible information definition. This translation does not determine the numerical boundaries or establish that the target power is attained; those are outputs to evaluate under the specified model.

A Short Justification for Information-Fraction Inputs

The information scale is useful because, under the canonical group sequential model, standardized statistics have standard normal marginal distributions and their dependence is determined by information timing. In particular, for looks \(i\leq j\), the covariance is

$$ \operatorname{Cov}(Z_i,Z_j)=\sqrt{\frac{I_i}{I_j}}. $$

Since \(I_i=t_iI_{\max}\) and \(I_j=t_jI_{\max}\), the covariance becomes \(\sqrt{t_i/t_j}\). Thus the fractions encode the relative information timing that governs dependence between looks. This explains why substituting enrollment fractions for information fractions can alter the sequential calculation: it changes the assumed covariance structure whenever enrollment and information do not increase proportionally. The canonical model is an assumption about the analysis statistics and information process, not a guarantee supplied merely by entering fractions.

1
Identify the requested scale.
For every field, determine whether it represents participants, events, information, a fraction, an effect, or an error-rate target.
2
Translate under explicit assumptions.
Use the specified endpoint model to convert maximum size and look timing only when the assumptions support that conversion; write down the formula and units.
3
Encode test and stopping choices.
Set the direction, sidedness, significance level, efficacy-boundary convention, and futility rule consistently with the design specification.
4
Separate inputs from checks.
Mark which quantities define the design and which are targets or outputs to verify, such as power at a specified effect.
5
Check internal consistency.
Confirm that look times increase, the last look is at maximum information, units agree, and the software’s parameterization matches the specification.

Diagnostics, Alternatives, and Common Errors

Before relying on a result, inspect the translated inputs as a set. Look fractions should be strictly increasing and end at 1; information and sample-size targets should not decrease; and a one-sided direction should agree with the coding of the treatment effect and statistic. Check that any futility rule is explicitly identified as binding or nonbinding, because its role in operating-characteristic calculations can differ. Confirm that the boundary specification is supported by the stated significance level and look schedule, and that the effect used for a power assessment is expressed on the correct scale.

The main alternatives are different ways to express the same design. A maximum sample-size representation is intuitive when enrollment drives precision and the analysis model gives a reliable sample-size-to-information conversion. An information-based representation is more direct for sequential calculations, particularly when the endpoint is event-driven. Look timing can be given as information fractions, event counts, or analysis times, but only if the software’s conversion between these quantities is appropriate. Boundary inputs can be provided as a named family, a spending function, or explicit critical values; these representations are alternatives, not automatically equivalent fields to combine.

A common mistake is to enter the planned fraction of participants enrolled as the information fraction at every look, then assume the design is unchanged. That reasoning is valid only when information is proportional to enrollment under the relevant model. The correction is to calculate or obtain information at each analysis, use the software’s documented information scale, and check the implied sample-size or event targets against the operational plan. Another mistake is to enter a target power as if it were a stopping boundary. Power describes performance over repeated trials under an alternative; a boundary determines a stopping decision from interim evidence.

Software input translation has limits. A correct input file cannot repair a misspecified endpoint model, unrealistic variance or event assumptions, an infeasible look schedule, or a mismatch between the protocol and analysis statistic. Nor does a successful calculation establish that a design is operationally suitable. Keep a record of the specification, assumptions, conversions, software field meanings, and resulting checks so that another analyst can reproduce the interpretation.

Check Your Understanding

Answer each question, then compare with the solutions.

  1. A continuous-outcome design uses equal allocation, common standard deviation \(10\), and maximum total sample size 200. What maximum information follows from the stated two-sample model?
  2. A trial has three planned information fractions \(0.50, 0.80, 1.00\). What basic ordering and endpoint checks should be made before entering them?
  3. Why is a target power of 90% not a substitute for specifying an efficacy boundary?
  4. A balanced event-driven design plans 160 events and uses the approximation \(I=D/4\). What maximum information and information fraction correspond to a look at 80 events?

Solutions. (1) \(I_{\max}=N/(4\sigma^2)=200/[4(10^2)]=0.5000\) in inverse squared outcome units. (2) The fractions must increase strictly and the final fraction must equal 1; confirm that they are information fractions rather than enrollment fractions and that the implied analyses are operationally compatible with the specified model. (3) Power is the probability of rejecting \(H_0\) under a stated alternative across repeated trials; a boundary specifies the evidence threshold at each look. The design must specify both the stopping rule and the performance target. (4) \(I_{\max}=160/4=40\), and the look at 80 events has \(I=80/4=20\), so its information fraction is \(20/40=0.50\).

Clinical Biostats