Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues executing the ecomplexity codes #5

Closed
chadasmith36 opened this issue Dec 6, 2021 · 6 comments
Closed

Issues executing the ecomplexity codes #5

chadasmith36 opened this issue Dec 6, 2021 · 6 comments

Comments

@chadasmith36
Copy link

chadasmith36 commented Dec 6, 2021

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

@sbustos
Copy link
Collaborator

sbustos commented Dec 6, 2021 via email

@chadasmith36
Copy link
Author

Hi Sebastian,

Thanks for the reply and for pointing me in the right direction. I appreciate the explainer do-file as well. I’ll try the new data and code and see how I do. I’ll reach back if I have any further issues.

Thanks,

Chad

@chadasmith36
Copy link
Author

Hi Sebastian,

Sorry, but you said you were attaching a stata dofile to explain some of the calculations, but I don't see the attachment. Can you resend it?

Thanks again,

Chad

@sbustos
Copy link
Collaborator

sbustos commented Dec 7, 2021 via email

@chadasmith36
Copy link
Author

Hi Sebastian,

Thanks for your help! I think I know which document you are referring to so that's fine.

But I'm now feeling confused as I don't know which order to execute the new set of do-files. Is there a run_codes.do or other similar doc outlining the order like there was in the beta edition?

Also, I understand the economic complexity concepts from the literature, but for an outsider without a coding background, these coding languages are incredibly esoteric and when I run into a problem or get an error code, I feel lost as to what to do about it. Does the Harvard CID offer any professional services to help researchers understand how to execute the methods? Or do you suggest another resource I can go to? I'm willing to pay for some help at this point.

Thanks,
Chad

@chadasmith36
Copy link
Author

Hi Sebastian,

Issue is resolved! Deadlines will be met! I found a resource to help me out!

I wanted to say thanks for responding.

My journey down the ecomplexity path has begun!

Chad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants