Documentation

18.30 Boundaries and non-positive-definite matrices

nlmx flags a bounded THETA within 1% of its initial distance to a bound, a variance below 0.1% of its initial value, or an implied OMEGA/SIGMA correlation with magnitude at least 0.99. These rules identify estimates where ordinary curvature inference is questionable.

A non-positive-definite covariance-step matrix means it cannot serve as a valid local covariance. Causes include overparameterization, saddle points, numerical differentiation noise, boundaries and weak design information. Removing a covariance step from the run hides the symptom; it does not solve it.

Responses include checking data/model, reparameterizing, removing unsupported random effects, improving scaling, using alternative uncertainty methods, or collecting richer data. Widen a bound only if it lacks scientific justification.

Practical interpretation

Classify the boundary before acting. A clearance at a physical lower bound, a variance collapsing to zero, and a correlation approaching one have different scientific meanings. Profile the objective inward from the edge and inspect whether the likelihood keeps improving, becomes flat, or turns. This evidence guides whether to simplify, reparameterize, revise an unjustified bound or report one-sided uncertainty.

When removing a random effect or covariance, refit the full model and recompute OFV, diagnostics and uncertainty. Do not merely delete the problematic row from a covariance matrix. The reduced model is a different likelihood with different parameter estimates.

Preserve both fits so the simplification and its consequences remain auditable.

Record the original warning verbatim in the analysis report.

Common mistakes

Do not replace negative eigenvalues silently, report SEs from an invalid matrix, or interpret a collapsed variance as exact zero variability.

Checklist

  • Identify the specific boundary/eigen-direction.
  • Check start-relative flag thresholds.
  • Refit with justified reparameterization.
  • Preserve failed covariance evidence.
  • Use alternate uncertainty methods where warranted.

Further reading

Return to parameter transforms, Cholesky, and Chapter 42.