Documentation

20.16 Estimation controls: iterations, covariance, SAEM, and evaluate-only

--max-iterations N limits classical iterations; zero evaluates objective, EBEs and residuals without optimizing. --gradient-tolerance controls the largest transformed gradient target; relative OFV stability can also terminate classical fitting. Use --cov-step/--no-cov-step and --cov-matrix rsr|r|s deliberately.

SAEM uses --saem-burn, --saem-iter, --saem-chains, --is-samples and --seed. These map to Chapter 19 phases and final IMP OFV. --max-iterations 0 --approximation saem with EXT performs importance-sampling evaluation at supplied estimates rather than new SAEM estimation.

--start-from-ext --ext FILE replaces control-stream initial estimates. EXT labels must map correctly. This is useful for post hoc/evaluate-only, restarts and comparing objectives at another program’s estimates.

Iteration limits and covariance skipping change evidence, not merely runtime. A one-iteration output may be written but is nonconverged. Evaluate-only SEs require covariance if requested and meaningful at that parameter point.

Match controls to the analytical purpose

Gradient tolerance and maximum iterations govern optimizer termination, not model validity. Set them before comparison and interpret the final gradient on the reported internal scale. --ridge-max can help traverse difficult curvature, but extensive regularization may signal poor identifiability and belongs in the review record.

For covariance, state whether rsr sandwich, r, or s was requested and why. Compare sensitivity when uncertainty drives decisions. For SAEM, record seed, burn-in, accumulation, chains and importance samples; inspect stationarity, acceptance and effective sample size. Stochastic stability should be assessed across seeds.

Evaluation-only mode with zero iterations is a powerful translation test: import or set a fixed parameter vector and compare objective and predictions without optimizer-path differences. It must be labeled as evaluation, not estimation, and compatibility of parameter ordering must be verified.

Common mistakes

Do not set max iterations zero expecting a fit, provide EXT without --start-from-ext, or treat no-cov as successful uncertainty. Increasing iterations cannot fix wrong model/data.

Checklist

  • State estimation/evaluation intent.
  • Align EXT parameter labels/scales.
  • Review termination/gradient.
  • Separate covariance choice.
  • For SAEM report stationarity/ESS.

Further reading

See evaluate-only example, SAEM example, and Chapters 18–19.