Hello,
I'm a PhD student at George Mason University. I'm working on two projects where I'm attempting to apply, for the first time, these economic complexity methods, and I hope to do many more of these projects in the future. I'm trying to replicate these codes on the BACI dataset to learn how to apply the methods in Stata before I attempt to apply them to a different dataset, but I'm having a few issues executing the codes.
First, I have a question about the read_cepii.do codes. When I "Convert to observatory ids" and merge on i over 10 million obs. did not match and when I merge on j over 8 million obs. did not match. When I "merge to create the export_value and import_value files" 38 million matched and over 94 million did not match. Is that normal? If not, what kind of number should I expect and what might I be doing wrong?
Second, on the atlas_variables.do file, when I "Create touse variable for loading the data into MATA" and then "quietly levelsof origin_id if `touse'==1, local(LOCATION)" I keep getting an error saying ==1 is an invalid name. I tried a workaround and just generated a complex_country variable, but when I "mata exp_cp = rowshape(exp_long,Ncx)," I keep getting an r(3300) error saying my argument is out of range. I thought it might be because my Stata/BE 17 version didn't allow for a big enough matsize for the matrix, so I purchased the Stata/MP 17 version, but I still can't execute the rowshape command. Perhaps it is something I'm doing wrong earlier in the process, but I cannot figure it out and I'm fast approaching some deadlines.
I'd very much appreciate any help or guidance anyone can provide to help me solve these issues. Or, if anyone knows where I might be able to get some help with executing these codes, I'd appreciate a point in the right direction.
Thanks,
Chad Smith