[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: tips to manage multiple do files?

From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: tips to manage multiple do files?
Date   Thu, 18 Sep 2008 17:27:10 +0200

My texteditor has a feature "search in directory" which searches for a phrase in a whole bunch of do-files. That works like a breeze...
On the second question, I would say that if you bump up against the upper limit for lines, then you are either making your do-files more complicated than they need to be or you are a very professional Stata programmer. Whatever the case, I think you can nest do-files, i.e. they can call other do-files, which would allow you to circumvent the size limitation...


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Man Jia
Sent: Thursday, September 18, 2008 5:10 PM
To: [email protected]
Subject: st:tips to manage multiple do files?

Hi all,

I was wondering if anyone could share any tips of managing many do 
files for one research project. Thanks for your help!
(1) How to make it easy to find some specific work in several do files?

 Now I have to open most of them to see if the file has the part I'm 
looking for. The thing is, it is kind of hard to remember clearly  the 
content of each file after even two or three days not working with 
them. I tried to write outline in the beginning of each file, but I 
have to open each of them to get the outline.
(2) detailed comments in do files
 For me  it's useful to have detailed comments to explain what I'm 
doing in most parts in a do file. Those details include what the 
commands are doing, anything I should be careful with in future, 
sources I get the ideas, why the alternative ways are not good, summary 
of the results..... But a do file has limitation of number of lines in 
it. So, Writing a lot of comments means I have to create many do files. 

So, is there any good habit to deal with this? Is it better that in do 
files just add concise comments and take notes in other files?
Thanks for your time! I really appreciate it.
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index