tergmprepare - consider check for userdefined ergm.userterms term names
Closed this issue · 2 comments
marioangst commented
Small issue but it just got me into a bit of trouble. When working with terms created with ergm.userterm, functions such as edgecov will fail if custom term names coincidentally have similar names to existing terms in ergm. In my case this was because tergmprepare checks for some existing terms through regex matches (eg. in my case I created a term called twopathedgecov, which produces a match on line 77 of tergmprepare).
I guess a exact regex match might solve this?
All the best ;)
Mario
leifeld commented
It may be a bit late for this, but if you can provide a minimal self-contained example, I can look into this. Thanks.
leifeld commented
Closing because not reproducible/testable without example.