Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: dealing with directories in.ado files


From   "NEYMOTIN, FLORENCE" <neymotin@calmail.berkeley.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dealing with directories in.ado files
Date   Mon, 20 Jun 2005 15:09:18 -0700

okay, the preserve-restore thing helps for the cases where I'm building matrices with a subset of
the data. I'm "assuming" that the matrices and scalars you make when working with a different
dataset are preserved for when you do the restore command.  If I WERE to want to keep part of the
dataset around though (say I wanted to take a subset of the data and then re-merge it with the
ORIGINAL DATASET, then where would I keep the data from the original one before doing the restore?
i.e. if you do something for people to use in different directories, then what path should be
specified for this kind of thing?  thanks for your help.
Florence




On Mon, 20 Jun 2005 16:44:24 -0500
   Richard Williams <Richard.A.Williams.5@ND.edu> wrote:
> At 02:15 PM 6/20/2005 -0700, Florence Neymotin wrote:
>>Hi, I was wondering, if you are writing a .ado file to be used as a stata
>>add-on, then if you need to do a preserve restore, what is the default to
>>use as the directory for this?  I wasn't sure whether "home" or the temp
>>files associated with the stata program would be better here.
>>Thank you,
>>Florence
>
> I'm not sure I understand the question.  You do not have to specify a directory when using
>preserve and restore.  Further, I suspect Stata doesn't write anything to disk, unless you have
>allocated more memory than you have, but I could be wrong about that.
>
> If you are talking about where to store your own personally written ado file, I imagine
>c:\ado\personal (or whatever -adopath- tells you is the "personal" directory) is probably the
>most common place.
>
> If I'm not understanding you correctly, perhaps you could clarify exactly what it is you want.
>
>
> -------------------------------------------
> Richard Williams, Notre Dame Dept of Sociology
> OFFICE: (574)631-6668, (574)631-6463
>FAX:    (574)288-4373
> HOME:   (574)289-5227
> EMAIL:  Richard.A.Williams.5@ND.Edu
> WWW (personal):    http://www.nd.edu/~rwilliam
> WWW (department):    http://www.nd.edu/~soc
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index