Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: Re: st: RE: Help with loops


From   n j cox <n.j.cox@durham.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: Re: st: RE: Help with loops
Date   Mon, 19 May 2008 16:12:19 +0100

Interesting! I agree with Joseph. I wouldn't recommend exploiting this.
There is no way of knowing, without extensive testing, exactly how reliable it is across platforms, versions and national or local idiosyncrasies of installation.

Nick
n.j.cox@durham.ac.uk

Joseph Coveney

Nick Cox wrote:

Dots are not allowed in variable names. Period.

--------------------------------------------------------------------------------

Just a technical clarification: so-called raised dots *are* allowed, not
that I would recommend using them.


. set obs 1
obs was 0, now 1

. generate y`=char(183)'a = 1

. describe

Contains data
obs: 1
vars: 1
size: 8 (99.9% of memory free)
--------------------------------------------------------------------------------------------------------
storage display value
variable name type format label variable label
--------------------------------------------------------------------------------------------------------
ya float %9.0g
--------------------------------------------------------------------------------------------------------
Sorted by:
Note: dataset has changed since last saved

. foreach var of varlist _all {
2. display in smcl as text "`var'"
3. }
ya

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