You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm talking about the networks in the est_between and est_within objects of the hergm response. Doing so would make it possible to recover the original network without having to store it.
Currently, the order of the vertex IDs is different, so it isn't straightforward to merge both networks. For example, assume that hergm was performed on a network g. Then:
# Extract the networks for each estimationg_b<-hergm_res$est_between$networkg_w<-hergm_res$est_within$network# Create a copy of the between-blocks networkg_merged<-network::network.copy(g_b)
# Extract the edgelist of the within-blocks networke_w<-network::as.edgelist(g_w)
# Add those edges to the network `g`network::add.edges(g_merged, e_w[,1], e_w[,2])
The resulting g_merged network should be the same as the original g, but it's not necessarily so. You can try this with the toyNet included in the package. The vertex names are properly assigned, but they are in a different order in both networks, so the internal IDs map to different nodes.
Being able to merge would make it unnecessary to pass the original network to functions such as gof_lighthergm.
The text was updated successfully, but these errors were encountered:
I'm talking about the networks in the
est_between
andest_within
objects of the hergm response. Doing so would make it possible to recover the original network without having to store it.Currently, the order of the vertex IDs is different, so it isn't straightforward to merge both networks. For example, assume that hergm was performed on a network
g
. Then:The resulting
g_merged
network should be the same as the originalg
, but it's not necessarily so. You can try this with thetoyNet
included in the package. The vertex names are properly assigned, but they are in a different order in both networks, so the internal IDs map to different nodes.Being able to merge would make it unnecessary to pass the original network to functions such as
gof_lighthergm
.The text was updated successfully, but these errors were encountered: