Documentation

19.23 Reportable OFV, covariance, and common random numbers

The final IMP OFV estimates the marginal likelihood and is the value used in model comparison when SAEM/IMP is the chosen method. Its Monte Carlo precision depends on draws and ESS. The docs’ 200-subject example reports roughly ±1 OFV unit at 300 draws and ±0.2 at 3000; these are example-specific, not guarantees.

Importance-sampling OFV stabilizes as draws increase

For covariance after SAEM, nlmx fixes standardized importance draws—common random numbers—and recenters each perturbed proposal at that parameter set’s conditional mode/curvature. This makes finite differences smoother and more accurate than unrelated draws or frozen proposals.

Covariance still uses R/S/sandwich definitions from Chapter 18, but the differentiated objective is deterministic conditional on fixed design. Low ESS compromises both OFV and curvature confidence.

Practical interpretation

Evaluate OFV at the same parameters twice using the same fixed importance design: values must match. With independent designs they will differ by Monte Carlo noise. For a finite-difference perturbation, recenter proposals and retain standard draws so the OFV difference reflects parameter change rather than random sampling.

Run a draw-count ladder and compare SEs as well as OFV. A stable point objective with unstable covariance can occur because second derivatives amplify Monte Carlo error. Report covariance method and draw count together.

Cross-software comparisons should include Monte Carlo uncertainty bands or repeated-seed distributions, not a single absolute OFV tolerance narrower than sampling error.

Common mistakes

Do not round away Monte Carlo uncertainty, use independent draws for every finite-difference perturbation, or compare SAEM models with different inadequate draw counts.

Checklist

  • Report IMP draws, seed, ESS and OFV.
  • Check OFV stability at larger M.
  • Fix standardized draws for covariance.
  • Recenter proposals per perturbation.
  • Apply Chapter 18 covariance diagnostics.

Further reading

Open csvimportance_sampling.csv, then read settings and performance.