Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Problem with new version of Stat-transfer


From   "Newson, Roger B" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Problem with new version of Stat-transfer
Date   Wed, 2 Dec 2009 14:57:25 +0000

Presumably, you are transferring from a text format into Stata. Stata (and most other statistical software to the best of my knowledge) does not allow variable names to start with numbers, only with letters or underscores. Therefore, if you want Stat/Transfer to preserve your variable names when transferring to Stata, then you must make these variable names legal Stata names before the 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.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ricardo Ovaldia
Sent: 02 December 2009 14:50
To: [email protected]
Subject: st: Problem with new version of Stat-transfer

Dear _all

I have a Stata program write under Stata's version 9 that uses stat-transfer's "st.exe" to read an ever increasing number of text data files.

I recently upgrated to Stat/tranfer 10, and when I ran my program it broke.
Stat/transfer rename my variables. For example it changed:
1_1_SubjectID  to  a_1_SubjectID
1_2_Reviewer  to  a_2_Reviewer
and so on.

How do I get Stat/transfer to respect my variable names? and why does it change them?


Thank you,
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK




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



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