# NOT RUN {
# }
# NOT RUN {
options(ergm.eval.loglik=FALSE)
data(sampson)
gest<-ergm(samplike~edges+gwesp(decay=.5, fixed=FALSE),
control=control.ergm(MCMC.burnin=1024, MCMC.interval=8, MCMLE.maxit=1))
# Error:
gest2<-try(ergm(gest$formula,
control=control.ergm(init=coef(gest), MCMC.burnin=1024,
MCMC.interval=8, MCMLE.maxit=1)))
print(gest2)
# Works:
tmp<-enformulate.curved(gest)
tmp
gest2<-try(ergm(tmp$formula,
control=control.ergm(init=tmp$theta, MCMC.burnin=1024,
MCMC.interval=8, MCMLE.maxit=1)))
summary(gest2)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab