Open wbuchanan opened 8 years ago
Thank you for these tips! Glad to know someone can actually see what I'm doing here. I've implemented some of them now and will include the rest soon. The script using the ds command to replace the first loop and using the syntax command to parse arguments are very useful.
Not a problem. Every once in a while I try to check out who is posting Stata code on GitHub in the hopes that more of the user community will start using GitHub. I also figure it could be helpful since it doesn't seem like there are many places with a substantial group of Stata users (particularly when it is a space that I'm a bit more familiar with).
Yea, it definitely helps to have a more active user group online for Stata users. Most people in economics use Stata but very few use version control on their code. I think this is reasonable given that most code written by economist in Stata are used for a very specific application or for quick hypothesis testing. Thus, maintainability is not so important.
Just came across your repo and thought I'd offer some suggestions that could make your script more stable/flexible and follow typical coding practices in Stata.
insheet
changed a bit in version 14 and it might result in code breaking, while the version command will help to make sure the code is interpretted consistently across versions.insheet
command will likely fail when it expands the local macros).