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

st: RE: tempvar


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: tempvar
Date   Fri, 7 Jun 2002 15:45:42 +0100

Anna-Lisa Pierre
> 
> I am trying to use the 'tempvar' command so that I do not have to drop 
> variables at the end. However, I am having problems using this 
> within loops. 
> Are 'tempvar' and 'tempname' not supposed to be used within 
> loops? The part 
> of my programme that is giving trouble is as follows:
> Any insights will be gratefully appreciated.
> 

< long code fragment deleted 

There is no objection to using -tempvar- 
and -tempname- within loops whenever that 
makes sense. 

This question is very difficult to answer
unless you tell us where your program 
stops and what Stata says. -set trace on-
first. 

Nick 
[email protected] 
*
*   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