Skip to content

BCompare groups · Guide test 292

Pocock group sequential procedure

Uses approximately constant significance boundaries across a planned sequence of interim analyses.

Runs in CodeSplashPython (calls R) example not runR example not run

Do it in CodeSplash

In the app, set it up in Analyze with this method:

In Sequential monitoring — group-sequential boundaries and always-valid p-values, choose Efficacy bounds = Pocock (classical constant bounds).

Do it in CodeSplash Run this test on your own data, in Python or R.

Bench

Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.

Bench · Pocock group sequential procedure

30

Three equally spaced looks at accumulating data (known SD 1).

0.30
0.050

Your data

Data accumulate over three looks
2.292.292.29

The trial stops at the first look whose |z| reaches its boundary; later looks (faded) would not have happened.

If H₀ were true

z_sw = 2.05
  1. The reference: how z_sw varies across samples when H₀ is true (stagewise ordering: earlier crossings count as more extreme; shown as the z with the same two-sided p (Pocock)).
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .040).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

bk=c tkΔ−1/2,∑kP0(∣Zj∣<bj (j<k), ∣Zk∣≥bk)=α,Δ=12b_k=c\,t_k^{\Delta-1/2},\qquad \sum_kP_0\big(|Z_j|<b_j\ (j<k),\ |Z_k|\ge b_k\big)=\alpha,\quad \Delta=\tfrac12

With your numbers

b=(2.29,2.29,2.29),stopped at look 3 (z=2.71),zsw=2.05b = (2.29, 2.29, 2.29),\quad \text{stopped at look } 3\ (z = 2.71),\quad z_{sw} = 2.05
tkt_k
information fraction at look k (1/3, 2/3, 1)
Δ\Delta
the boundary shape: ½ Pocock, 0 O'Brien–Fleming, in between Wang–Tsiatis
zswz_{sw}
the stagewise-ordering p-value written as a z, the value shown on the reference

The verdict

z at look 3 = 2.71, z = 2.05, p = .040

p ≤ α = .050: reject H₀

Equal boundaries at every look make early stopping easier, at the cost of a stricter final look than a fixed design.

Statistic
2.050
p-value
0.0404
Pocock group sequential procedure on three looks after 30, 60 and 90 observations: z at look 3 = 2.71, z = 2.05, p = .040. The p-value is below α = .050, so the data are hard to reconcile with H0.

Pocock group sequential procedure on three looks after 30, 60 and 90 observations: z at look 3 = 2.71, z = 2.05, p = .040. The p-value is below α = .050, so the data are hard to reconcile with H₀.

Question and hypotheses

H0: the treatment/effect parameter equals its null value across sequential looks.

Assumptions

A prespecified group-sequential design with valid approximately Gaussian score increments; information times, sidedness, maximum sample size and stopping boundaries specified. Standard joint null correlation is Corr(Zi,Zj)=√(Ii/Ij) for i≤j.

Formula

bj=cb_j=c

Parameters and notation

Pocock uses a constant standardized Z boundary across planned looks; c is solved so the total crossing probability equals α.

Structure of the method

Specify a finite sequence of information times and solve for a constant standardized Z boundary whose joint-null crossing probability meets the error budget. The correlated statistics arise from accumulating information; treating the planned looks as independent miscalibrates the design.

Estimated and nuisance parameters

The boundary constant is numerically solved from the design, not estimated to fit the observed treatment effects. Treatment estimates and information are produced by the underlying outcome model at each look. A group-sequential boundary does not itself specify whether outcomes are normal, binary or survival.

Settings and design choices

Choose number/timing of looks, sidedness, alpha, beta, target effect and binding/nonbinding futility rules. In gsDesign, alpha is one-sided even for a symmetric two-sided design; the baseline alpha=.025 therefore targets .05 total symmetric type I error. Default generic information values are ratios, not automatic participant counts.

Fitting and adaptation

Design and calibrate before inspecting interim effects. If information timing changes, use a justified spending-function or conditional-error approach rather than assume the original constant boundary remains exact. Adaptation concerns trial design and information estimation, not neural fine-tuning.

Sensitivity and robustness

Pocock-style boundaries facilitate earlier stopping but usually impose a more stringent final threshold than a fixed design. Small-sample non-Gaussian statistics, overruns and unplanned looks affect operating characteristics. Report adjusted inference after stopping, actual information fractions and whether the original boundary family or an alpha-spending analogue was used.

How to use and calibrate

Use multivariate normal integration or a validated design algorithm to calibrate all boundaries jointly. Alpha-spending analogues handle actual information timing but must be identified separately.

Example application

Use relatively even evidence thresholds across interim and final analyses.

Interpretation and pitfalls

Watch out

These are stopping-boundary families, not different outcome models. Ordinary unadjusted intervals and p values after early stopping may mislead.

What changed in edition 2

  • New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.

Python and R

Three-look symmetric two-sided design; gsDesign alpha=.025 is the one-sided upper-tail rate, yielding .05 overall. Wang–Tsiatis delta=.25 lies between O’Brien–Fleming and Pocock shapes. These are design boundaries, not observed-data p-values.

Python · invokes R

Not run — Python launcher syntax checked; R backend runtime not verified · needs Python standard library + Rscript; R packages: gsDesign

# Python launcher for the complete R implementation below.
# Requires Rscript on PATH and the listed R packages.
import shutil
import subprocess
rscript = shutil.which("Rscript")
if rscript is None:
    raise RuntimeError("Install R and make Rscript available on PATH.")
r_code = r"""
design<-gsDesign::gsDesign(k=3,test.type=2,alpha=.025,beta=.2,sfu="Pocock")
print(design)
print(data.frame(look=1:3,information=design$n.I,upper_z=design$upper$bound,lower_z=design$lower$bound))
"""
# No shell interpolation. A failed R execution raises an error in Python.
result = subprocess.run([rscript, "--vanilla", "-"], input=r_code,
                        text=True, capture_output=True)
print(result.stdout)
if result.stderr:
    print(result.stderr)
result.check_returncode()
R

Not run — Syntax checked; runtime not verified in the final environment · needs gsDesign

design<-gsDesign::gsDesign(k=3,test.type=2,alpha=.025,beta=.2,sfu="Pocock")
print(design)
print(data.frame(look=1:3,information=design$n.I,upper_z=design$upper$bound,lower_z=design$lower$bound))

Sources

Statistics guide v4 (historical):
Python: Python launcher syntax checked; R backend runtime not verified · R: Syntax checked; runtime not verified in the final environment
Reference's record:
Edition 2 review: Python: skip · R: not executed (Rscript unavailable); why not run: Python: Python-to-R bridge; Rscript is unavailable. R code was not executed. Python: Not run in the reference's review: Python-to-R bridge; Rscript is unavailable. R code was not executed. R: Reviewed but not run: R wasn't available to the reference's authors.

From the CodeSplash statistics guide (v4), entry 292, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT292.