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

Utilities for attribute frequencies for egos and alters #29

Open martinamorris opened 6 years ago

martinamorris commented 6 years ago

The base R table command is a bit cumbersome, and inflexible.

Ideal would be an S3 function with syntax like:

table(egodata, "attrname", weight=T/F)

And have it produce a table for both the ego and alter sets.

Syntax should allow for attrname1 x attrname2 x ... for xtabs.