Dear All,
I am new to this forum but I have been consulting your usefull answers since years. I hope someone has already dealt with my issue.
I have a large unbalanced panel on international trade and I would like to set up my dataset in order to run a network analysis. I have an ID variable for each observation (Country A exporting a certain "Value" to country B in a given year). The matrix is not symmetric and has from and to columns which give the link "from each from to each to".
The best routine for my dataset was provided by Fink https://simonfink.files.wordpress.co...h-stata-v1.pdf but unfortunately SONIA software does not exist anymore.
When I try to follow Cerulli and Zinilli by using datanet, STATA reports a type mismatch error. I have coded
, which are both string variables because STATA does not allow me to use numeric variables with datanet.
Then, I have tried to follow these procedures
https://stats.idre.ucla.edu/stata/fa...ysis-in-stata/
https://stats.idre.ucla.edu/stata/co...acency-matrix/
but I could not find SNA package.
Finally, I am trying to apply nwcommands. I was able to set up my dataset with command
but STATA creates a matrix with null values and I cannot change the zeros with my values, neither with dichotomous values. When I try to load and change these values
I have the error " <istmt>: 3499 nw_mata1 not found r(3499)".
How can I deal with this?
Many thanks for every suggestions you give me!
Giulia
I am new to this forum but I have been consulting your usefull answers since years. I hope someone has already dealt with my issue.
I have a large unbalanced panel on international trade and I would like to set up my dataset in order to run a network analysis. I have an ID variable for each observation (Country A exporting a certain "Value" to country B in a given year). The matrix is not symmetric and has from and to columns which give the link "from each from to each to".
The best routine for my dataset was provided by Fink https://simonfink.files.wordpress.co...h-stata-v1.pdf but unfortunately SONIA software does not exist anymore.
When I try to follow Cerulli and Zinilli by using datanet, STATA reports a type mismatch error. I have coded
Code:
datanet reporter_name partner_name
Then, I have tried to follow these procedures
https://stats.idre.ucla.edu/stata/fa...ysis-in-stata/
https://stats.idre.ucla.edu/stata/co...acency-matrix/
but I could not find SNA package.
Finally, I am trying to apply nwcommands. I was able to set up my dataset with command
Code:
nwset Reporter_Code Partner_Code Value, name(mynet) edgelist
Code:
nwvalue mynet
How can I deal with this?
Many thanks for every suggestions you give me!
Giulia
Comment