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

st: RE: tempvar

From   "Nick Cox" <>
To   <>
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-

*   For searches and help try:

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