In this dataset, a product is being produced by id1 and moved to id2, and (part of it) looks as follows:
However, some rows id1 and id2 are identical, meaning that the product was not moved. To paint a realistic picture, is it possible to incorporate the fact that some products are not moved in a network? I.e. that the network only represents a part of all the products. Perhaps via a weighted network, where the weight of the tie is the percentage of products moved from node i to node j relative to the total amount of products node i produced. For that I would first need to know how many products are moved between node i and node j, and how many of node i's product are not being moved (where id1 == node i, and id2 == node i)
I have used this website's search function and looked at the help page for the nwcommands package, but I did not find what I am looking for. Nwcommands does include options to value ties between nodes, but I'm not sure as that is what I am looking for.
Code:
ssc install nwcommands clear input id1 id2 1 2 1 1 3 4 5 6 3 3 6 4 7 3 6 6 2 3 2 2 4 5 3 9 8 8 7 8 3 4 8 4 4 7 3 2 3 2 9 1 9 9 3 6 5 1 end // setting it as network data and plotting the network nwset id1 id2, edgelist name(test) nwplot test
I have used this website's search function and looked at the help page for the nwcommands package, but I did not find what I am looking for. Nwcommands does include options to value ties between nodes, but I'm not sure as that is what I am looking for.
Comment