Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to genearte the list of vars for nodes using nw2fromedge command when the number of nodes exceeds 1000

    Hello, could someone help me on this question. I am using the network analysis command "nw2fromedge" to generate a one-mode network. As shown in the attached picture, the command will simultaneouly create a list of variables names "var2 var3 var4 var5" corresponding each node. In
    my case where the number of codes more than 1000, I could successfully generate the network, however,
    it has not simultaneously generated the variables named "var1 var2 var3 var4 ... var1000 var1001 ...". I notice that 1000 is the boundary. When the number of nodes is no more than 1000, the nw2fromedge command will generate "var1 var2 var3 var4 ... var1000" but when the number of nodes exceeds 1000 it has not.

    When I run "nwsummarize, mat" I could see the matrix in the command dialogue. But I dont know how to operate on that or generate the varlist.

    I need these variables to be explicit in varlist as I will use them to merge with other data and do some further analysis. And I think maybe I need to use MATA to utilize it but I am new to MATA. I will appreciate your suggestions or advice and thanks in advance.


    The example codes to generate the dataset in the picture:

    nwclear
    use "http://nwcommands.org/data/institutions.dta", clear

    nw2fromedge person institution, project(1)

    Click image for larger version

Name:	Pic.png
Views:	1
Size:	14.1 KB
ID:	1539023

  • #2
    You didn't get a quick response. You'll increase your chances of a useful response by following the FAQ on asking questions – divide Stata code in code delimiters, readable Stata output, and sample data using dataex.

    With a user written program, help depends on someone active on the list happening to be familiar with the program. It appears no one is familiar with it at the level you're discussing. You have two basic options. You can try to edit the program to allow more than 1000 nodes, or you can contact the programs authors.

    Comment

    Working...
    X