Documentation

19.24 Settings, seeds, threads, speed, and diagnostics

The default run can include up to 1000 burn-in iterations, 300 accumulation iterations, two chains, two proposals for each of three kernels per chain/iteration, and 300 importance draws per subject. Model simulation dominates cost, especially for ODEs and many subjects/ETAs.

Use a fixed seed for reproducibility and independent seeds for sensitivity. nlmx’s per-subject streams and fixed reductions make results bit-identical across --threads; test that property on supported hardware/builds.

Diagnostics should include parameter/OMEGA/trace-objective paths, stationarity status, kernel acceptances/scales, boundary/covariance warnings, importance minimum/median ESS, OFV stability with draws, and between-seed stability. Runtime tables should separate SAEM, importance sampling and covariance.

Do not reduce iterations/draws only to win a speed benchmark. Establish accuracy gates first, then measure performance among passing configurations.

Practical interpretation

Create a phase timing table: burn-in, accumulation, IMP objective, covariance and reporting. Alongside time, record iterations, chains, kernel proposals, model evaluations, draws, ESS and convergence outcomes. This reveals whether a speed change comes from parallel execution, fewer calculations or weaker accuracy.

For thread testing, run 1, 2 and maximum workers with identical seed and files. Compare hashes or full-precision numerical tables as the product promises. Then benchmark elapsed time separately; determinism and scaling are distinct tests.

Capture CPU model, worker allocation and concurrent jobs. Subject parallelism can saturate memory bandwidth or oversubscribe cores, so speed scaling is an empirical property of the workload.

Common mistakes

Do not claim reproducibility from a seed alone, compare runtimes with different ESS/accuracy, or oversubscribe subject threads and external job parallelism.

Checklist

  • Archive all settings and resolved defaults.
  • Preserve seed/thread/hardware/version.
  • Diagnose every phase separately.
  • Benchmark release builds with accuracy held fixed.
  • Repeat pivotal runs across seeds.

Further reading

See settings index, decision guide, and Chapter 42.