Documentation

30.13 Empirical Type I error calibration

Empirical Type I error calibration

A power result is useful only if the decision rule behaves appropriately under H0. A Type I calibration run generates trials with each tested effect fixed at its null, runs the same fitting and testing pipeline, and estimates the false rejection rate. This can reveal boundary effects, finite-sample bias, covariance problems, or incorrect nesting.

Concepts to keep separate

  • Use the same sample-size grid, schedules, attrition mechanisms, starts, estimation method, and primary test as the alternative run.
  • Null replicate counts need their own Monte Carlo precision. At alpha 0.05, observing only a few false positives makes small R especially unstable.
  • Compare the empirical interval with a prespecified acceptable range, not merely whether the point estimate equals 0.05.
  • Inflated Type I error can make a design appear powerful; deflation can make it appear conservative while reducing power.

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

With 1,000 null replicates and true alpha 0.05, the expected count is 50 and MC SE of the rate is about 0.0069. With only 20 null replicates, the expected count is one, so the observed rate can only move in 0.05 steps.

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

Calibration should be stratified when model difficulty changes sharply across scenarios. Passing at N=160 does not guarantee valid behavior at N=20 or under sparse sampling.

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

  • Was the exact null used?
  • Was the full analysis pipeline retained?
  • Is the null interval precise enough for the acceptance rule?
  • Are boundary hypotheses treated with an appropriate reference?

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

  • Using alternative trials to infer Type I error
  • Accepting inflated rejection because power is high
  • Running null simulations with easier fit settings

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.