network
network copied to clipboard
Mixing matrix for edge attribute
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 toNULL
, i.e. count ties. - optional argument
fun
expecting a function aggregating the tie values, defaults tosum
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 ?
I like.
Sounds good.