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

could not find function "degreedist.egodata" #20

Closed shangyuan232 closed 5 years ago

shangyuan232 commented 5 years ago

cdrHyper.ego is a egodata abject. when running degreedist.egodata, it shows the following error:

degreedist.egodata(cdrHyper.ego) Error in degreedist.egodata(cdrHyper.ego) : could not find function "degreedist.egodata"

krivit commented 5 years ago

Does just degreedist(cdrHyper.ego) work?

shangyuan232 commented 5 years ago

It works! Thanks!

krivit commented 5 years ago

Basically degreedist() is now a generic exported by ergm, so ergm.ego just implements an egodata method for it.

martinamorris commented 5 years ago

nice :)