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

st: RE: RE: scalar troubles?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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 
n.j.cox@durham.ac.uk 

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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index