Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Alan Neustadtl <alan.neustadtl@gmail.com> |
To | Statalist <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: profile.do file |
Date | Wed, 27 Nov 2013 09:53:03 -0500 |
I use global macros in my profile.do file to reassign function keys. For example, I use one dataset for teaching and to make it easier to load I program the F6 key to run a small .do file which increases maxvar and uses the data file. I also maintain a a Stata usersite for my classes and I program my F7 key to -net from- that site. Those two commands in my profile.do file look like these: global F6 do "C:\Users\Documents\My Research\GSS\gss.do"; global F7 net from http://terp.umd.edu/~smilex3md/stata; Best, Alan On Wed, Nov 27, 2013 at 8:44 AM, Lisa Wang <lhwang0925@gmail.com> wrote: > Thanks Nick. > > The set type to double is more like an example but appreciate you > pointing this out to me. > > Would you mind elaborating in a simple example of how I could set up > graph options in the profile.do file > > Also, apart from doing -set XXX - what other options can be specified > in this file? Any suggestions would be appreciated. > > Thanks again, > Lisa > > On Wed, Nov 27, 2013 at 9:04 PM, Nick Cox <njcoxstata@gmail.com> wrote: >> The profile.do file belongs in the same directory or folder as your executable. >> >> By the way, I think you need a really good reason to -set type >> double-. There has been much discussion of this, e.g.. a long thread >> starting at >> >> http://www.stata.com/statalist/archive/2011-02/msg00943.html >> >> A profile.do file could also include setting up your favourite graph >> scheme and settings for -netio-. >> >> Nick >> njcoxstata@gmail.com >> >> >> On 27 November 2013 08:34, Lisa Wang <lhwang0925@gmail.com> wrote: >>> Hi Statlisters, >>> >>> This seems like a very basic question. I have a question about the >>> profile.do do-file as in how do I create it (as I know that Stata will >>> automatically execute it). >>> >>> Do I just have it as a new do-file then where would I store this for >>> it to execute? Would I store it in my pwd of the dataset I am using or >>> in the actual file that Stata is installed? >>> >>> Apart from defining settings like: >>> set logtype text >>> set type double >>> set more off >>> >>> What else could I define? >>> >>> I already read the help profilew entry but would like some more >>> suggestions or pointers. Thank you. >>> >>> Regards, >>> Lisa >>> * >>> * 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/ > * > * 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/