network icon indicating copy to clipboard operation
network copied to clipboard

Mixing matrix for edge attribute

Open mbojan opened this issue 4 years ago • 2 comments

In the context of data with "weights" and/or ERGMs for valued ties it would be nice to be able do use mixingmatrix() to get some summaries of the tie values instead of tie counts. For example:

  • optional edge_attr argument expecting the name of edge attribute to be summarised, defaults to NULL, i.e. count ties.
  • optional argument fun expecting a function aggregating the tie values, defaults to sum

leading to expressions such as:

mixingmatrix(net, attrname = "vertex attribute", edge_attr = "weight")
mixingmatrix(net, attrname = "vertex attribute", edge_attr = "weight", fun = prod)

Thoughts? Opinions? @krivit @CarterButts ?

mbojan avatar Jan 28 '21 22:01 mbojan

I like.

martinamorris avatar Jan 28 '21 23:01 martinamorris

Sounds good.

krivit avatar Jan 30 '21 05:01 krivit