leifeld / btergm

Temporal Exponential Random Graph Models by Bootstrapped Pseudolikelihood
16 stars 10 forks source link

tergmprepare - consider check for userdefined ergm.userterms term names #15

Closed marioangst closed 2 years ago

marioangst commented 5 years ago

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 4 years ago

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 2 years ago

Closing because not reproducible/testable without example.