this is a question for your help. i use the ergm to model the formation of network.but it is always degeneracy.there are just 174 nodes(vertices), 304 deges. i use the code as follow
my.ergm.3 <- formula(gg04.1 ~ edges+nodecov("width")+
nodecov("depth")+nodecov("numbers")+gwesp(0.2,fixed=T)+gwdegree(2,fixed=T))
gg03.ergm.fit <- ergm(my.ergm.3,control = control.ergm(MCMLE.maxit = 20,
parallel =2,
parallel.type = "PSOCK",
MCMC.interval = 10000,
MCMC.burnin =10000,
MCMC.samplesize = 10000,
MCMLE.density.guard =5000)
,verbose=3)
the question is from the parameter -----gwesp(0.2,fixed=T) and gwdegree(2,fixed=T)),the speed is very low.and the error as follows: Estimating equations are not within tolerance region. Error in ergm.MCMLE(init, nw, model, initialfit = (initialfit <- NULL), : MCMLE estimation stuck. There may be excessive correlation between model terms, suggesting a poor model for the observed data. If target.stats are specified, try increasing SAN parameters.
i want to know if the code haves mistakes or i should how to correct the mistake. thank you very much