Documentation

20.21 .ext, .cov, .cor, and .coi

<stem>.ext uses NONMEM 7-style layout. Classical rows record iterations; SAEM burn-in rows are nonpositive and accumulation positive. Special final rows include estimates (-1000000000), SEs (-1000000001) and fixed flags (-1000000006). Preserve full precision.

.cov contains covariance of estimated elements; .cor contains their correlation matrix with SEs on diagonal following NONMEM convention; .coi contains inverse covariance. Labels/order must match free parameter vector, excluding fixed/tied/unused elements as documented.

Matrix files require successful covariance. Do not substitute empty/identity matrices after failure. When using EXT as starts, map labels and natural scales; final row is not always simply the last physical line if special rows follow.

SAEM EXT trace objective is not reportable marginal OFV; the final summary/appropriate row distinguishes IMP OFV. Cross-software readers must understand special row codes and method.

Use matrices with explicit ordering

Matrix interpretation depends on parameter order. Reconcile headers with THETA and estimated OMEGA/SIGMA elements before extracting a submatrix or comparing software. A covariance diagonal contains variances of estimates; its square roots should agree with reported SEs subject to precision. COR should have ones on its diagonal and values within [−1, 1]. COI is an inverse-covariance representation and deserves conditioning checks.

EXT is useful for restarts and cross-software comparisons, but verify the selected iteration/final row, objective convention and parameter scale. A copied value may be an internal transform rather than the biological-scale parameter expected by another tool. Keep full numeric precision.

Automated QC should test dimensions, symmetry, finite values, positive-semidefinite expectations where applicable and agreement with summary outputs. Large discrepancies or a nearly singular matrix should stop inference even if the file parses successfully.

Common mistakes

Do not parse EXT by column position without header/labels, treat COR diagonal as correlations of one, or invert rounded COV. Do not use iteration trace values as final estimates.

Checklist

  • Identify method and special rows.
  • Preserve labels/order/precision.
  • Confirm covariance success/kind.
  • Cross-check estimates with parameters.csv.
  • Validate EXT reuse mapping.

Further reading

See evaluate-only workflow, Chapter 38 planned output reference, and Chapter 18 covariance.