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

Re: st: eecummings features (was: statalist-digest V4 #1358)

From   Roger Newson <>
Subject   Re: st: eecummings features (was: statalist-digest V4 #1358)
Date   Fri, 03 Sep 2004 14:51:28 +0100

In case Steve Dubnoff is listening, StatTransfer would be even better if we had the option of changing the case of variable names without changing the case of variable labels. As David implies, this matters less when converting to Stata than when converting to some other packages, because we have -rename- in official Stata and -renvars- in unofficial Stata. However, I suspect that not many people want to change the case of variable labels when converting from one package to another.


At 13:38 03/09/2004, David Harrison wrote:

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'")'


-----Original Message-----
From: Ann E Fitzmaurice []
Sent: 03 September 2004 13:10
Subject: st: RE: statalist-digest V4 #1358

This has been asked before

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

Thanks for your help



* For searches and help try:

* For searches and help try:

Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
  or 020 7848 6605 International +44 20 7848 6605

Opinions expressed are those of the author, not the institution.

*   For searches and help try:

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index