Refit-cache identity and reuse
Likelihood refits are expensive, so nlmx stores results keyed by the active relationship set and compatible analysis identity. The frozen_refits.json cache supports equation comparison, SCM steps, repeated model sets, and resume. Reuse is valid only when the model, input hashes, likelihood approximation, equations, statuses, and relevant numerical settings remain compatible.
Treat the cache as evidence, not a disposable speed trick. Preserve convergence status, OFV, coefficients, diagnostics, and model-set key. Changing the dataset, base estimates, scope, equation reference, approximation, or software version should produce a new run or invalidate incompatible entries.
For validation, independently refit a sample of cached sets and compare endpoints within stated numerical tolerances. A cache hit must reproduce the same scientific model, not merely the same count of relationships. Archive the cache with the normalized configuration and checksums.
Common mistakes
- Treating a stepwise p-value as clinical importance or causal proof.
- Reading a candidate comparison without its active model, convergence state, degrees of freedom, and exact threshold.
- Reporting only the terminal relationship list while discarding failed models, path decisions, configuration, and provenance.
Page checklist
- The scientific question, model identities, and comparison direction are explicit.
- Numerical validity is reviewed before interpreting statistical evidence.
- The result is linked to the complete trace and final joint-model diagnostics.