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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: Reply: Setting default .do file template?


From   graupel75@gmail.com
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Reply: Setting default .do file template?
Date   Wed, 28 Nov 2012 10:53:13 +0800

Dear Rebecca,

Thanks for the response!  I am hoping to have the second of your
options- when opening a new .do file, I'd like my general header
information and pre-analysis commands to appear by default:

************************************************
* Project:
* Analyst:
* Date:
* This file:
************************************************

version 12
clear all
macro drop _all

Your suggestion of -doedit "filepath\template.do"- will certainly
work, but is there a way to change the default file? (A minor detail,
yes, I know!).

cheers, and thanks again-

Andrew Lover
----------------------------------------------------------------------------------
Epidemiologist
Centre for Infectious Disease Epidemiology Research (CIDER)
Saw Swee Hock School of Public Health
National University of Singapore


---------- Forwarded message ----------
From:  <graupel75@gmail.com>
Date: Tue, Nov 27, 2012 at 7:55 PM
Subject: Setting default .do file template?
To: Statalist <statalist@hsphsun2.harvard.edu>


Dear all,

My question: how to personalize the default .do file template when
opening a new .do file editor?

I had thought I saw a note in John Long's "Workflow of Data Analysis"
book, but alas.... I've also done quite a few searches of the archives
as well, but the search terms are too general. My apologies, as I
suspect this has been aired before.

cheers-
Andrew Lover

----------------------------------------------------------------------------------
Epidemiologist
Centre for Infectious Disease Epidemiology Research (CIDER)
Saw Swee Hock School of Public Health
National University of Singapore
*
*   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