Nick Cox
> Within a loop controlled by -forvalues- or -foreach- (or
> indeed -while-)
>
> tempname mymat
>
> always generates a _new_ tempname, even if
> `mymat' already exists. This is
> not, to me, intuitive, but it's what
> happens.
Strictly, this is true irrespective
of whether you are inside a loop
or not. In practice, it seems most
useful within some loop.
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/