statnet / ergm.multi

Fit, Simulate and Diagnose Exponential-Family Models for Multiple or Multilayer Networks
Other
14 stars 1 forks source link

Catch offset() decorators in the N() operator's formula and inform the user. #4

Closed krivit closed 2 years ago

krivit commented 3 years ago

This issue was exposed by https://github.com/statnet/tergm-private/issues/147, in that the N() operator does not propagate offsets.

This behaviour is as intended, because the whole idea of that operator is that the edges coefficient is an LM, and the offsets, if any, should be on the level of the LM coefficient. However, the user might not realise that, so an error (probably) should be raised.