[statnet_help] How to replace network on the right-hand side in ergm.simulate?

F Benjamin Rosche fbr33 at cornell.edu
Sat Mar 18 12:35:34 PDT 2023


Dear statnet users,

I have a question regarding the simulate.ergm() function. I fitted an ERGM
that includes an edge covariate using ergm(g1 ~ edges + edgecov(g2, "X") +
...).

To do a counterfactual analysis, I would like to replace g2 with another
state of this network. While I understand that I can replace the network on
the left-hand side in simulate.ergm() using simulate.ergm(ergm.fit,
basis=g1*), I don't know how to replace the network on the right-hand side
g2 with g2*.

I have noticed that simulate.ergm() does not require g2 to be in the R
environment - g2 must thus be stored in ergm.fit but the network stored in
ergm.fit$network seems to be the network on the left-hand side.

Thank you for any pointers that you can provide.

Best wishes,

Ben
--
*Benjamin Rosche*
Cornell University / Social Dynamics Lab / benrosche.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/statnet_help/attachments/20230318/2129069f/attachment.html>


More information about the statnet_help mailing list