statnet / ergm.ego

Fit, Simulate and Diagnose Exponential-Family Random Graph Models to Egocentrically Sampled Network Data https://statnet.org
Other
14 stars 4 forks source link

Add support for "by" option in mixingmatrix.egodata #9

Open martinamorris opened 7 years ago

martinamorris commented 7 years ago

For example

mixingmatrix("race", by="sex)

Jeanette will look into doing this by writing a "subset.egodata" function. So this issue report is just to note she's getting that started.

krivit commented 7 years ago
  1. Please work on the egor branch at this point. egodata class has been deprecated.
  2. subset.egodata() already exists in the CRAN version of ergm.ego (and egor also has a subset() method).
  3. In the next release, mixingmatrix.egodata() is going to be a method for the mixingmatrix() generic in the network package. It should, ideally, be made compatible; and I am not sure we want a by= argument in the network's generic.
  4. Since the return data type won't itself be a matrix but a list or a 3D array, I suggest giving it a different function name, perhaps just mixingmatrices() or mixingarray().
krivit commented 3 years ago

What's the status of this?