19.26 Worked example, validation, and known limits
The frozen teaching analogue samples a normal-normal conditional ETA with two chains. It uses two prior, two full random-walk and two component proposals per chain/iteration, adapts to target 0.4, runs 300 burn-in plus 300 accumulation iterations, and produces a final S1 near 0.3554. The analytic posterior mode from Chapter 18 is about 0.3571, so the stochastic statistic is plausibly close for this seed/run.
This is not an nlmx population fit and does not validate all M-step machinery. It is a transparent regression calculation for kernels, gamma and statistics.
The importance example reuses Chapter 18’s nonlinear toy likelihood. At 5000 antithetic t draws, estimated OFV is about −0.8512 versus quadrature −0.8370, with ESS about 4742 (94.8%). The remaining difference is finite Monte Carlo error for one fixed stream. Repetition and larger samples are needed to characterize variability.
The exact CSV contains a draw-count ladder. Readers should regenerate it, try several independent seeds, and summarize OFV bias/SD versus M. The exercise demonstrates why high ESS is necessary but not sufficient for zero Monte Carlo error: even many effective weighted samples form a finite estimate.
Validation of nlmx SAEM requires known-truth replicated models, NONMEM SAEM/IMP alignment, censoring, blocks/SAME/FIX, MU and non-MU parameters, sparse designs, boundaries, seed/thread tests, ESS/OFV coverage, and failure cases. Random streams need not match NONMEM; estimates should agree within declared Monte Carlo and numerical tolerances.
Common mistakes
Do not call one close trace validation, expect digit-identical cross-software stochastic paths, or ignore cases that fail stationarity/ESS. A stable estimate can still reflect model misspecification.
Checklist
- Reproduce generated CSVs/figures deterministically.
- Compare teaching results with analytic/quadrature references.
- Build replicated cross-software validation matrices.
- Separate estimator, IMP and covariance tolerances.
- Publish limitations and failures.
Further reading
Proceed to Chapter 20 for the full fit command, Chapter 42 for validation, or return to the Chapter 19 overview.