Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Merging Do-Files


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Merging Do-Files
Date   Fri, 5 Oct 2012 18:30:41 +0200

On Fri, Oct 5, 2012 at 6:21 PM, SAM MCCAW <[email protected]> wrote:
> I have about 23 Stata do-files which I would like to merge into one
> do-file. Is there a way to merge do-files in Stata withtout copying
> and pasting each do file into a single one?

It is often better to keep separate parts of a project in separate do
files, and call them all in one master .do file. That way you have the
advantage of smaller more easily maintainable .do files and the
advantage of having to run only one (master) .do file when you want to
run the entire project in one go.

Typically your master.do file will consist of only a few lines like:
do dataprep1.do
do dataprep2.do
do analysis1.do
do graph1.do
etc.

probably supplemented with some useful comments to document what do
file does what.

-- Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index