30.1 The trial-design question
Trial design is a decision problem before it is a calculation. A pharmacometrician may need to detect a covariate effect, estimate exposure precisely, distinguish models, or show that an operating characteristic exceeds a threshold. Each objective produces a different hypothesis, endpoint, analysis model, and sample-size definition. The first task is therefore to write a one-sentence question that names the population, design, estimand, decision rule, and success criterion.
Concepts to keep separate
- Separate scientific success from numerical success. A converged model is necessary evidence, but it is not the scientific endpoint.
- Define the unit of sample size: total randomised, treated, evaluable, or completed subjects. Attrition assumptions must connect these quantities.
- List which parts of the protocol may vary—allocation, sampling times, doses, follow-up, inclusion criteria—and which are fixed.
- State whether the calculation is exploratory screening, protocol justification, or qualification evidence. The required conservatism and validation differ.
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
A useful design statement is: ‘Among adults represented by the reference population model, find the smallest total randomised N that gives at least 80% LRT power at two-sided alpha 0.05 for CL~WT=0.75 versus 0, while convergence is at least 90% and median RSE limits are met, under the declared dropout and sampling plan.’ Every number in the output can then be traced back to this statement.
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
Before computing, ask whether the model and parameter uncertainty are adequate for the intended population. A precise calculation from a weak reference model is still a weak design argument.
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
- Can another analyst reproduce the same scenario from the design statement?
- Are the analysis model and test the ones planned for the real study?
- Are all important success criteria prespecified?
- Is the result labelled as exploratory, confirmatory, or validation evidence?
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
- Starting from a desired N and adjusting assumptions until it passes
- Using ‘power’ without naming the hypothesis and test
- Counting observed records as though they were independent subjects
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.
Navigation
See the previous page, next page, and formula and decision index.