Documentation

30.23 Wald power and sample-size scaling

Wald power and sample-size scaling
Supporting Chapter 30 calculation or executed result

For a one-parameter hypothesis, nlmx computes lambda from the true-minus-null effect and the FIM variance, obtains noncentral chi-square power, and exploits approximate information proportionality to N. If lambda at N0 is lambda0, the continuous target is N0×lambda_needed/lambda0. The result is then rounded upward to an integer.

Concepts to keep separate

  • For one degree of freedom, alpha 0.05 and target power 0.80, lambda_needed is about 7.849.
  • Scaling assumes the design composition and per-subject information remain unchanged as N changes.
  • Arm allocation constraints can make the next feasible N larger than the simple ceiling.
  • A sample-size grid remains useful to verify monotonicity and expose integer or nonlinear design changes.

Terminology matters because a single scenario can contain several denominators and several sources of randomness. Truth is the parameter vector used to generate a replicate. Estimate is the value recovered from that replicate. Design is the planned arrangement of subjects, arms, doses, and observations. Method is the approximation or simulation–estimation procedure used to predict performance. A credible report labels all four.

Mathematical or operational walkthrough

At reduced-FIM N0=40, lambda0=7.2739. Scaling gives 40×7.8489/7.2739=43.16, which rounds to 44 subjects. The same value appeared from every grid point because information scaled proportionally.

For novices, read every expression from the inside out: identify the scientific effect, identify the null value, put both on the same parameter scale, identify the variance or information that belongs to the actual design, and only then calculate a test statistic or sample size. Units and parameterisation should cancel in a way that leaves a dimensionless statistic.

How this maps to nlmx

Do not round down. After rounding and arm allocation, recompute power for the actual feasible design and include a margin when uncertainty, attrition, or approximation error matters.

Chapter 30 explains the statistical and implementation concepts. Chapter 31 gives the complete nlmx power command, every CLI and settings control, precedence, output schema, and production workflow. This separation is deliberate: choosing an option correctly requires understanding which estimand and assumption it changes.

Quality-control checklist

  • Does N scaling preserve schedule and allocation?
  • Was the result rounded upward?
  • Was feasible integer allocation rechecked?
  • Does a direct grid run confirm the scaled target?

The graph is explanatory; the CSV, JSON, resolved settings, model inputs, and replicate rows are the authoritative evidence. When a plotted point looks surprising, diagnose the underlying rows before changing the design.

Common mistakes

  • Rounding 43.16 to 43
  • Scaling through a design discontinuity
  • Adding dropout after rounding without recomputation

Also avoid copying a sample size from a nearby project. Power is conditional on the model, tested effect, covariate distribution, schedule, residual and random variability, attrition, test, estimator, and success criteria. Similar-looking studies can have very different information.

Evidence to retain

  • scientific question, estimand, hypothesis, alpha, target, and criteria;
  • model/data/design inputs, parameter source and uncertainty distribution;
  • software version, method, approximation, seed, threads, command, and resolved settings;
  • scenario grid, row-level results, failures, denominators, intervals, diagnostics, and checksums;
  • scripts that calculate derived tables and figures, plus the interpretation and limitations.

See the previous page, next page, and formula and decision index.