Documentation

20.32 Covariance failures, zero variances, and F_FLAG likelihood problems

Minimization and covariance are separate stages. A model may reach an optimum yet fail to produce a usable covariance matrix. First confirm whether covariance was requested: --no-cov-step intentionally leaves SE, RSE and confidence intervals absent. If it was requested, inspect the covariance method (rsr, r, or s), eigenvalues, condition number, boundary notes and the parameters included in the calculation.

Ill-conditioning can arise from redundant fixed effects, highly correlated random effects, sparse information, poor scaling, a residual component at zero, or a parameter near a bound. Compare the condition number with and without boundary parameters when nlmx supplies both. Do not “solve” a bad covariance by merely switching estimators; agreement across methods is reassuring, but a different formula cannot create information absent from the data.

Zero or near-zero OMEGA estimates require special care. They can mean the population variance is unsupported, while also placing inference on a boundary where ordinary Wald and likelihood-ratio assumptions may fail. Inspect EBE shrinkage and subject-level information, test a reduced random-effects model, and evaluate how fixed effects and predictions change. Never replace a variance with a small arbitrary value solely to obtain a matrix inverse.

For $PRED models using F_FLAG, confirm that every observation receives the intended likelihood contribution and that probabilities/densities stay finite and valid. A normal-likelihood path, a log-likelihood path and a probability path are not interchangeable. Check sign conventions and whether the objective expects -2 log L, a log density, or a density transformed internally. Extreme probabilities can underflow; stable log-scale formulations are preferable when supported. Test a handful of records against hand calculations.

Parameter layers and their roles in estimation

Diagnostic experiments

Freeze weak parameters, remove one covariance, simplify the residual model, or evaluate at trusted estimates. Change only one feature per run. If covariance becomes stable, the experiment identifies a candidate source; it does not by itself justify the simplified scientific model.

Common mistakes

  • Calling intentionally absent SEs a software failure.
  • Reporting RSE for a parameter effectively at zero.
  • Switching covariance formulas without diagnosing identifiability.
  • Confusing F_FLAG likelihood conventions.
  • Using tiny artificial variances to conceal singularity.

Checklist

  • Confirm covariance was requested and identify its formula.
  • Review boundary flags, eigenvalues and conditioning.
  • Test reduced structures with scientific justification.
  • Hand-check representative F_FLAG contributions.
  • Report uncertainty limitations explicitly.

Further reading

See covariance controls, OMEGA syntax, and PRED likelihoods.