nw2fromedge problem

130 views
Skip to first unread message

kristian svendsen

unread,
Apr 8, 2015, 8:32:01 AM4/8/15
to nwcom...@googlegroups.com
Thanks for a really neat and expansive stata package!

So  I have a dataset from wikipedia and I basically have ten articles (called substance) and all editors who have edited the articles (called user). There is a significant overlap between users editing different articles so there is a network here. With the nw2fromedge command I wanted to do the project(1) option to get the ten articles as nodes, but this fails with the following error after running this sequence:

keep  SUBSTANS USER
bysort SUBSTANS USER: egen test = count(1)
drop if test<4 //simply to get only the most important users for when testing this network, I have run this without this selection as well and still it fails
sort SUBSTANS USER
drop test
duplicates drop
nw2fromedge SUBSTANS USER, name(test99) project(1)


error I get back "Either option gen or option stub needs to be specified. invalid syntax"

Can you advice me on what is wrong?

kind regards
Kristian

Thomas Grund

unread,
Apr 14, 2015, 12:11:57 PM4/14/15
to nwcom...@googlegroups.com
Hi Kristian,

I cannot replicate your error. Can you send me a sample of your dataset and a syntax file directly to thomas....@gmail.com

I just ran the examples listed under . help nw2fromedge and they work.

Best,
Thomas
Reply all
Reply to author
Forward
0 new messages