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

st: RE: RE: scalar troubles?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: scalar troubles?
Date   Wed, 5 Nov 2003 14:15:39 -0000

A linked point is that using a tempname 
for a scalar removes the possibility of name 
conflict and reduces the amount of stuff
left lying around. Conversely, if you want
to leave stuff lying around, use -return- 
or -ereturn-. 

Nick 
[email protected] 

Nick Cox
 
> A guess: If you have a variable -m1- then 
> 
> di m1 
> 
> will be interpreted as 
> 
> di m1[1] 
>  
> rather than 
> 
> di scalar(m1) 
> 
> The binding -scalar()- is needed in cases of ambiguity. 

*
*   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