40.4 OFV, likelihood, approximation, and constants
What you will learn
- Compare objectives only when definitions align
- Handle omitted constants and Monte Carlo error
- Avoid comparing FOCE, Laplace, and importance-sampling OFVs as interchangeable
Prerequisites: Chapter 39 troubleshooting, Chapter 36 command reference, and Chapter 38 output reference.
This page is scoped to nlmx 4.16.2 and an external-documentation snapshot of 2026-11-10. Product names describe different system boundaries; a blank or “outside role” is not a quality ranking. Treat every migration as a new implementation until model semantics, analysis population, objective definition, numerical behavior, outputs, and decisions have been independently reconciled.
An objective comparison requires the same observations, likelihood contributions, random-effects distribution, approximation, and constants. nlmx classical FO/FOCE/FOCE-I/Laplace outputs omit the common n_obs log(2π) constant to match the documented NONMEM scale. That makes direct evaluation useful only when the model and method truly align.
FO, FOCE, FOCE-I, and Laplace approximate the marginal likelihood differently. nlmx SAEM's internal progress objective is not a reportable likelihood; its final reportable OFV comes from importance sampling. NONMEM supports IMP as an estimation/evaluation method; Monolix separates SAEM population estimation from a likelihood task using linearization or importance sampling. PsN normally inherits the objective from NONMEM runs. PopED's design OFV is a function of FIM/criterion and is not a model-fit OFV.
Before comparing, freeze parameters and request evaluation-only behavior where possible. Reconcile predose exclusion (--keep-predose for NONMEM-like inclusion), F_FLAG/censoring, residual variance, OMEGA/SIGMA scale, and data filters. For stochastic likelihood, record draws, proposal, effective sample size, seed, and Monte Carlo uncertainty; a difference inside combined MC error is not evidence of bias.
Model selection must compare OFVs from the same method and population. Do not compare an importance-sampling likelihood for one model with FOCE-I for another, or a PopED log-determinant with a NONMEM OFV.
Worked interpretation
If nlmx reports FOCE-I OFV 1000 and a Monolix project reports an importance-sampling -2 log-likelihood near 990, neither number proves one model fits better. First evaluate the same model with the same approximation and constants in both systems. Likewise, the SAEM progress quantity in nlmx is a convergence diagnostic, not the final likelihood. Record an objective label containing population, likelihood family, approximation, constants, and stochastic precision—not merely OFV.
Review checklist
- Are the exact product versions, task boundaries, inputs, methods, and settings named?
- Were semantics and frozen-parameter results aligned before optimized outputs?
- Is the comparison using a method-appropriate deterministic or stochastic tolerance?
- Are unsupported or analogous features described without implying equivalence?
- Can every claim be reproduced from retained primary evidence?
Navigation
See the previous page, next page, and complete comparison reference.