Documentation

30.5 Likelihood-ratio, Wald, and score tests

Likelihood-ratio, Wald, and score tests

The likelihood-ratio test (LRT), Wald test, and score test compare the null and alternative from different vantage points. Under regular large-sample conditions they share an asymptotic chi-square distribution and similar power, but nonlinear mixed-effects models can violate those approximations through boundaries, weak identification, sparse data, or failed covariance estimation.

Concepts to keep separate

  • The LRT compares objective functions from full and reduced fits: ΔOFV = OFV_reduced − OFV_full. It requires both fits to be valid.
  • The Wald test standardises the estimated distance from the null using its SE. It requires a trustworthy covariance estimate.
  • The score test evaluates the likelihood slope at the null fit and can avoid fitting the full alternative, but it is not the nlmx SSE decision engine described here.
  • With one regular restriction and alpha 0.05, LRT significance usually means ΔOFV exceeds 3.841; boundaries can require a different reference law.

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 replicate may yield an evaluable LRT but no Wald decision if the reduced fit succeeds while the covariance step does not provide a finite SE. Therefore each test has its own evaluable denominator.

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

Design with the same test planned for the analysis. When feasible, request both LRT and Wald summaries to diagnose discrepancies, but prespecify which is primary.

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

  • Did both nested models fit the same dataset and likelihood?
  • Is the covariance estimate finite and appropriate?
  • Are restrictions regular and nested?
  • Is the primary decision rule fixed in advance?

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

  • Mixing OFVs from different approximation methods
  • Treating covariance failure as Wald nonsignificance
  • Assuming asymptotic equivalence in a sparse boundary problem

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.