17.17 OFV, parameter count, and comparability
The objective function value is commonly −2 log likelihood up to constants under the chosen model and approximation. Lower OFV means better in-sample fit only when candidates use the same observations, likelihood conventions, data transformation, censoring rules, approximation and comparable optimization quality.
OFV always improves or stays similar when a flexible nested model is optimized successfully. That is why selection criteria add a complexity penalty or LRT compares the improvement with added degrees of freedom. N_PARAMETERS in model_comparison.csv is therefore central. It includes estimated fixed, random and residual components according to the implemented counting rule; pruned ETAs change it.
Check N_OBS, N_SUBJECTS, and N_PARAMETERS_RANDOM in every row. If observation counts differ because one candidate dropped records or failed on subjects, its AIC/BIC should not be treated as directly comparable. Status fitted does not by itself establish that the same likelihood was maximized.
Very low OFV from a nonconverged model can be an intermediate iterate or unstable region. The nonlinear example demonstrates this: QSS has the numerically lowest OFV but fails convergence and conditioning gates. The result remains in the table for transparency but does not win.
Likelihood constants can also differ among implementations. When reproducing NONMEM, Monolix, or another package, a constant OFV offset may be harmless for within-package deltas but fatal to an absolute-number comparison. Establish the convention with a simple reference case, then compare parameter estimates, deltas and decisions using a versioned tolerance policy.
Common mistakes
Do not report ΔOFV without Δparameters, calculate criteria from rounded displayed values, or compare likelihoods across different DV scales. Avoid counting fixed values as estimated parameters unless the implementation does so; use the exported count.
Checklist
- Confirm equal data and likelihood conventions.
- Use exported full-precision OFV and parameter counts.
- Account for pruned ETAs and boundary parameters.
- Exclude unreliable fits before ranking.
- Preserve raw tables for independent recalculation.
Further reading
Next read AIC, BIC, and BICc and LRT and nesting.