Closed AdrienLeGuillou closed 3 years ago
I fixed it by adding
isTERGM = TRUE
save.nwstats = FALSE
to the control object. This happened because of resimulate.network = FALSE
. isTERGM
and save.nwstats
were not setup properly in the custom init function to avoid the issue.
@smjenness, can this happen as well in core EpiModel? I will investigate to see if these two flags should be set automatically when resimulate.network = FALSE
I just checked, it does not appear to be an issue in core epi-model
Was this a change you made to the gallery code or to core epimodel?
To the gallery code, it does not seem to be required in core. I would always make a PR for a core EpiModel change
Got it, thanks!
This model fails with error:
simply adding
isTERGM = TRUE
orisTERGM = FALSE
to the control object does not solve the problem. This problem only exists with EpiModel 2.1 and not 2.0.5