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

Implement egocentric versions of `ergm::ergm_get_vattr()` and `ergm::ergm_attr_levels()`. #16

Closed krivit closed 6 years ago

krivit commented 6 years ago

These helper functions should extract and process actor attribute information from egodata objects such that, say, ergm.ego_get_vattr(spec, as.egodata(nw), ...) is identical to ergm_get_vattr(spec, nw, ...) and ergm.ego_attr_levels(spec, attr, as.egodata(nw), ...) is identical to ergm_attr_levels(spec, attr, nw, ...).

krivit commented 6 years ago

Implemented in 22c3ccc619a9ef69f0d1e61aa1dcbaa3a5d99095 .