gof()only sometimes fails with GOF = "degree". Here is a captured seed that triggers the error:
library(ergm.ego)
set.seed(1)
toy_ego_nw <- make_egor(50, 32)
fit <- ergm.ego(toy_ego_nw ~ edges + absdiff('income') + nodefactor('sex'))
gf <- gof(fit, GOF = "degree")
## Error in `ergm_Init_abort()`:
## ! In term ‘degrange’ in package ‘ergm’: Term degrange must have from<to.
## Run `rlang::last_error()` to see where the error occurred.
Distilled from #76.
gof()
only sometimes fails withGOF = "degree"
. Here is a captured seed that triggers the error: