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

st: RE: RE: RE: statalist-digest V4 #1358


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: RE: statalist-digest V4 #1358
Date   Fri, 3 Sep 2004 17:07:42 +0100

Or one if you have installed -renvars- from STB-60. 

. renvars, lower 

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

David Harrison
 
> The default behaviour of StatTransfer (in v7 at least) is to 
> change all variable names to lower case - if you are getting 
> upper case variable names then you probably have "Preserve 
> name and label case if possible" checked in the StatTransfer 
> options (I don't know that there is a command line switch for this).
> 
> Alternatively the variable names can be converted to lower 
> case by 3 lines of Stata code (provided the lower case names 
> would be unique)...
> 
> foreach v of varlist _all {
>     ren `v' `=lower("`v'")'
> }

Ann E Fitzmaurice
 
> I am using stat transfer to transfer spss files into stata 
> .dta and the
> variable names all come over in capitals, is there a way to create the
> stata file with the variable names in lower case

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