I’m not sure whether it is was always there or whether it just came with an update, but finally I have found out how to blockwise copy & paste in the Stata do-file editor. What I used to do with other text editors (mostly with WinEdt), is now possible with Stata’s built-in editor. Continue reading
If you need a certain ado-file to run your do-file and you are working on different computers, there is a way that Stata checks whether the needed ado-files are installed and that needed ado-files are automatically installed if they are not yet Continue reading
The simple answer to the above implicit question is, because I had to. When I started workin with STATA there was no built-in editor to write do or ado-files. But even after the inclusion of the do-file editor in STATA, I kept my habit of using a separate program for programming my do-files.
When writing a lot of do-files during a research process it is hard to keep track of what a do-file was for, what it needs in terms of input, and what it generates in terms of output. Especially, if you get your paper back from the (journal) referees with comments what you should change, and want to re-run some part of the analysis — a year after you have done it –, it is hard to remember exactly what you need to do.
I use a preamble in my do-files to document (somewhat) this information, but also to set a couple of standard pointers that make my work easier …