30.10 Re-estimation inside every replicate
Empirical power must include the estimation procedure planned for the real data. nlmx fits the full model and a reduced model for each hypothesis, obtains objective functions and—when requested—covariance information, then applies LRT and Wald rules. Fit starts may come from reference, truth, or perturbed values; that choice can materially affect numerical success.
Concepts to keep separate
- Reference starts represent a stable planned workflow. Truth starts reduce optimisation difficulty and may overstate operational robustness.
- Perturbed starts test sensitivity to imperfect initial values but introduce an additional random mechanism.
- Full and reduced models must differ only by the declared restriction; otherwise ΔOFV is not the intended test.
- A covariance step is necessary for SE, RSE, coverage, and Wald evidence. Disabling it deliberately narrows the available criteria.
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
Suppose the full fit returns OFV 1032.4 and the reduced fit 1041.0. ΔOFV=8.6, exceeding 3.841, so the one-df LRT is significant. The median executed ΔOFV at N=40 was 8.638, but each replicate had its own value.
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
Record fit status, termination reason, parameter estimates, SEs, objective functions, elapsed time, and hypothesis-specific test availability. A single Boolean ‘success’ loses important diagnostic information.
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
- Are starts representative of the intended analysis?
- Do nested models use identical data and settings?
- Are covariance failures distinct from fit failures?
- Can suspicious replicates be reopened?
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 every fit at truth without disclosure
- Reusing one fit across independent replicates
- Dropping reduced-fit failures from reports
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.