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: Reply: Setting default .do file template?
From
Clinton Thompson <[email protected]>
To
[email protected]
Subject
Re: st: Reply: Setting default .do file template?
Date
Wed, 28 Nov 2012 08:21:37 +0100
Hi Andrew,
I did something similar to what you want (I was also inspired by
Long's "Workflow of Data Analysis" text) but rather than create a
default .do file sitting somewhere arbitrary, I created and saved to
my desktop a script using hotkey (http://www.autohotkey.com/). After
the script is run and loaded (I only have to do this once but if I
restart my computer I have to rerun it), I then call it from w/in an
empty .do file using the keystroke Alt+1 (I think Long uses the same,
or a similar, keystroke).
This approach was the best I could come up with and it has served me well.
Hope this helps,
Clint Thompson
On Wed, Nov 28, 2012 at 3:53 AM, <[email protected]> wrote:
> 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: <[email protected]>
> Date: Tue, Nov 27, 2012 at 7:55 PM
> Subject: Setting default .do file template?
> To: Statalist <[email protected]>
>
>
> 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/
*
* 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/