Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixing matrix for edge attribute #53

Open
mbojan opened this issue Jan 28, 2021 · 2 comments
Open

Mixing matrix for edge attribute #53

mbojan opened this issue Jan 28, 2021 · 2 comments

Comments

@mbojan
Copy link
Member

mbojan commented Jan 28, 2021

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 ?

@martinamorris
Copy link
Member

I like.

@krivit
Copy link
Member

krivit commented Jan 30, 2021

Sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants