data(sampson)
gest<-ergm(samplike~edges+gwesp(alpha=.5,fixed=FALSE),maxit=1)
# Error:
gest2<-try(ergm(gest$formula,theta0=coef(gest),maxit=2))
print(gest2)
# Works:
tmp<-enformulate.curved(gest)
tmp
gest2<-try(ergm(tmp$formula,theta0=tmp$theta,maxit=2))
summary(gest2)
Run the code above in your browser using DataLab