17.19 Likelihood-ratio tests and nesting
For a recognized reduced/full pair, the likelihood-ratio statistic is ΔOFV = OFV(reduced) − OFV(full). Degrees of freedom are the difference in estimated parameter counts. Under regularity assumptions and true nesting, ΔOFV is compared with a chi-square distribution; --lrt-alpha sets the decision threshold.
LRT selection follows structural edges rather than globally sorting every model. For one-, two-, and three-compartment oral candidates, the screen can move from one to two if significant, then from two to three. lrt_tests.csv records reduced model, full model, ΔOFV, degrees of freedom, p-value and significance.
Nesting is mathematical, not nominal. Models with different residual distributions, data transformations or observation sets are not suitable for a routine LRT. Parameters on boundaries—especially variances or additional compartments collapsing to zero—can violate the standard chi-square reference. The p-value is then approximate and may need mixture distributions, simulation, or cautious interpretation.
In the distribution example, one-to-two and two-to-three improvements are both significant at alpha 0.01, so LRT selects three compartments. In the lag example, adding lag is strongly significant but adding a second disposition compartment after lag is not.
Testing order matters. A stepwise path can stop before a later model is considered, even if that later model has an attractive standalone information criterion. State whether the path is strictly hierarchical and how a failed or ineligible intermediate model is handled. This prevents an analyst from improvising edges after inspecting the p-values.
Common mistakes
Do not LRT nonnested MM versus QSS models merely because both are nonlinear, infer nesting from shared name prefixes, or perform many unplanned tests without multiplicity awareness. A tiny p-value does not measure clinical importance.
Checklist
- Verify the reduced model is a restriction of the full model.
- Confirm common data and likelihood.
- State alpha and testing order in advance.
- Review boundary and regularity issues.
- Preserve every tested edge, not only significant ones.
Further reading
Read Chapter 18’s likelihood theory and worked BIC versus LRT.