library(ergm)
e <- readRDS("ergm.estimate.rds")
do.call(ergm:::ergm.estimate, e)
What appears to be happening is that:
Constrained statistic matrix is shifted and scaled in accordance to the Hummel step length.
MCMLE or lognormal approximation is used to update the parameter estimates.
Importance sampling Hessian is recalculated with the original stats matrices.
Even if the Hessian on the shifted and scaled has to be SPD for estimation to succeed, the Hessian for the original stats matrices (which is what must be used to compute the standard errors) isn't guaranteed to be.
The simplest solution is probably to just return NA for the Hessian and its inverse, but that could have downstream effects on, e.g., convergence testing.
Steps to reproduce:
ergm.estimate.rds
.What appears to be happening is that:
Even if the Hessian on the shifted and scaled has to be SPD for estimation to succeed, the Hessian for the original stats matrices (which is what must be used to compute the standard errors) isn't guaranteed to be.
The simplest solution is probably to just return NA for the Hessian and its inverse, but that could have downstream effects on, e.g., convergence testing.