Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Merging Do-Files


From   SAM MCCAW <sam2stata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Merging Do-Files
Date   Fri, 5 Oct 2012 16:37:00 -0400

That's perfect. Thanks a lot.

On Fri, Oct 5, 2012 at 12:30 PM, Maarten Buis <maartenlbuis@gmail.com> wrote:
> On Fri, Oct 5, 2012 at 6:21 PM, SAM MCCAW <sam2stata@gmail.com> 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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index