Outsource tergm CMLE facilities to ergm.multi as much as practical.
krivit opened this issue · comments
Block-diagonal matrix construction and deconstruction and other facilities can live in ergm.multi
, with tergm
handling only the temporal components. Other than avoiding code duplication, an added advantage of this is that by piggybacking on N()
operator, it would be possible to have TERGMs with time-varying network-level covariates, so that, say Form(~edges, ~factor(.Time))
would fit a different formation effect for each time step. I've prototyped it in statnet/ergm.multi@for-tergm
and statnet/tergm@from-multi
branches.
I think most of @statnet/epimodel uses the EGMME facilities, so they shouldn't be affected. Is that right?
Hi @krivit, what do you mean by EGMME facilities? (sorry I am only slowly getting into the statnet
parts of EpiModel)
OK. I'll make the changes in the ergm.multi
API needed by tergm
before pushing it to CRAN.
Done.