Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: a question about tempvar


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: a question about tempvar
Date   Tue, 7 Feb 2006 02:25:32 +0000 (GMT)

--- Jian Zhang <[email protected]> wrote:
> But I just have one concern.  If we have to add drop `temxxx', what is the point of using
> command tempvar?

It is useful when you write ado-file instead of do-files, since you as a user will only see the
results after the program has run, and so the tempvars will have dissapeared by then. It can also
be useful in do-files to ensure that you don't forget to delete variables. Some may find that it
leads to more transparent code since it clearly points to which variables are only temporary, but
tastes here probably differ.




-----------------------------------------
between 1/2/2006 and 31/3/2006 I will be
visiting the UCLA, during this time the
best way to reach me is by email

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index