Hello everyone,
I'm writing a largish software project in Stata, that has to do with data preparation. I'm new to Stata programming, and I find myself constantly changing my mind between using do files and using ado files for the commands. On the one hand, do files seem more appropriate, since I'm adding a lot of new commands that I use only once or twice. It has the slight inconvenience that I have to run them in the beginning of every do file using them, but it gives me the possibility to group programs by category in the same do-file, as opposed to one program (and its submethods) per ado file.
On the other end, for distribution, I like that ado files can be installed in the PLUS sysdir, and that I can provide help files.
What is the standard practice for large Stata projects? Should I use ado files or do files? Or maybe a mix of both? Thank you very much!
edit: I should add, to be more precise, that most of these commands are "under-the-hood" commands, and that most if not all end users will never use them. Out of the 30+ commands, I think I will want 2-3 to be available to the end user.
I'm writing a largish software project in Stata, that has to do with data preparation. I'm new to Stata programming, and I find myself constantly changing my mind between using do files and using ado files for the commands. On the one hand, do files seem more appropriate, since I'm adding a lot of new commands that I use only once or twice. It has the slight inconvenience that I have to run them in the beginning of every do file using them, but it gives me the possibility to group programs by category in the same do-file, as opposed to one program (and its submethods) per ado file.
On the other end, for distribution, I like that ado files can be installed in the PLUS sysdir, and that I can provide help files.
What is the standard practice for large Stata projects? Should I use ado files or do files? Or maybe a mix of both? Thank you very much!
edit: I should add, to be more precise, that most of these commands are "under-the-hood" commands, and that most if not all end users will never use them. Out of the 30+ commands, I think I will want 2-3 to be available to the end user.
Comment