18.26 The R matrix: observed information
Let \(\psi\) be the estimated natural-scale parameter vector. Because OFV is \(-2\log L\), nlmx defines
R is observed likelihood curvature at the fitted point. If the model is regular and correctly specified, \(R^{-1}\) approximates the covariance of estimates. Steep curvature implies small local uncertainty; flat curvature implies large uncertainty.
nlmx obtains the Hessian with central differences using steps \(10^{-3}\max(|\psi_k|,10^{-3})\). Mixed terms require paired perturbations. Every evaluation repeats the likelihood calculation, so covariance cost grows rapidly with estimated elements.
R can be indefinite or nearly singular near boundaries, ridges, saddle points or numerical noise. Inversion then fails or yields unstable SEs. A positive matrix does not prove the model is correct; it only supports a local quadratic uncertainty approximation.
Practical interpretation
In a two-parameter example, draw OFV contours. Closely spaced circular contours give similar curvature in all directions; a long narrow valley gives one small R eigenvalue and high correlation. R summarizes only this local shape. Moving farther from the optimum may reveal asymmetry or another basin that a single Hessian and Wald interval cannot represent.
Check the Hessian by symmetry and by comparing directional second derivatives with \(v^{\mathsf T}Rv\). Large disagreement indicates finite-difference noise or inconsistent mode convergence. Because R is based on the fitted sample, its stability across modest step changes is part of covariance QC.
Common mistakes
Do not call R the residual covariance, omit the half factor, or interpret \(R^{-1}\) as robust to misspecification. Avoid comparing R-based SEs with sandwich SEs without naming the kind.
Checklist
- Verify parameter ordering and natural scale.
- Confirm finite-difference stability.
- Inspect eigenvalues and correlations.
- Identify boundary parameters.
- State
MATRIX=Rexplicitly when used.
Further reading
Next: S and sandwich and conditioning.