Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: inputst and variable name case
From
Roger Newson <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: RE: inputst and variable name case
Date
Thu, 18 Nov 2010 17:38:10 +0000
I would agree that Nick Cox's suggestion to use -renvars- is probably
the best solution to Scott's problem. However, in the more general case
of customizing things at the Stat/Transfer level, the user also has the
option of writing a Stat/Transfer .stcmd command file. Such a command
file can then be called from Stata using -stcmd-. As in:
stcmd mystcom.stcmd
You can consult the .pdf documentation for Stat/Transfer to find more
about -.stcmd- files, if you want to get deeper into the technical side
of Stat/Transfer.
I hope this helps.
Best wishes
Roger
Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/
Opinions expressed are those of the author, not of the institution.
On 18/11/2010 17:22, Nick Cox wrote:
-inputst- is from Roger Newson's package -stcmd-, available in various places.
You can modify any of those programs if you like, but that modified program then becomes your responsibility. But I think it's much easier to do this in other ways. For example, with -renvars- from the Stata Journal,
. renvars, lower
is all you need. Type -findit renvars- and download from the SJ 5-4 files.
Nick
[email protected]
Scott N. Bronson
I am importing a SAS 9.2 dataset into Stata using the inputst command. While I can import the data fine using inputst, the SAS variable names are a mixture of upper case and lower case, and I would like to have them to all be lower case in Stata. I know which StatTransfer Command Processor commands that I want to use, but I am having difficulty understanding how (and whether) I can modify the inputst and/or stcmd .ado files to force all imported variable names to be lower case. Any help would be much appreciated!
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/