MKPROFILE:  Create or edit your profile.do


If you want to use mkprofile, then feel free to use Stata's command ssc install to download and install mkprofile:
   ssc install mkprofile , replace
Disclaimer:  There is no warranty on this software either expressed or implied.  This program is released under the terms and conditions of GNU General Public License.

About mkprofile

Programmer:  Dan Blanchette ()
Center for Entrepreneurship and Innovation
Duke University's Fuqua School of Business
Durham, NC  USA
Developed at The Carolina Population Center at The University of North Carolina at Chapel Hill
Date:  06Feb2005
Last updated:  22Jul2005


Create or edit your profile.do

mkprofile [, memory( integer value for number of megabytes of memory ) vlabel( integer between 8 and 32 ) edit cwd ]


mkprofile without specifying options is equivalent to:

 . mkprofile , memory(20) vlabel(12)

Description

mkprofile creates or edits your profile.do file.  Your profile.do file contains the settings you would like Stata to have every time you invoke a Stata session.  By default, mkprofile sets your variable label position to 12 and sets your memory to 20m.

Options

memory( integer ) sets Stata's memory to that number in megabytes.  Be careful not to set it too low or too high as you will get an error message when profile.do is run.


vlabel( integer ) sets the variable label position in the variable label window.  If you tend not to have variable names longer than 8 or so characters, set it to 10 to allow you to easily see the variable label associated to the variable.


edit will allow you to open your pre-existing profile.do file in the do-file editor.


cwd tells Stata to change to the directory you are currently in when you invoke mkprofile at the beginning of each Stata session.  Note:  "cwd" means "current working directory."  To use this option, first cd to the directory you normally use, then use the cwd option in mkprofile.  The next time you start Stata, you will be in this directory.  To start Stata in a different directory in the future, edit your profile.do.


NOTE:  An example of how to set-up F keys (eg. F4, F5) on your keyboard to be used to change to set directories is implemented in the profile.do file using the current directory in the example.  Use the macro list to see what F keys are already being used.

Remarks

Since Stata runs the first profile.do file that it finds in its search path, there is no guarantee that mkprofile is going to be found and run by Stata.  Read more about profilemkprofile's default location to create the profile.do file for Windows is "c:\ado\" and "~/ado/" for UNIX/Linux.  These can be set to a different directory along Stata's search path for profile.do by editing mkprofile.ado.

Examples

 . mkprofile

 . mkprofile, vlabel(10)

 . mkprofile, mem(100) vl(9) cwd

 . mkprofile, edit memory(100) vlab(9) cwd

Also see



Back to Main Page



Questions or comments?
   Send them to Dan Blanchette ()