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

st: stat-transfer question


From   Lee Sieswerda <[email protected]>
To   "Statalist (E-mail)" <[email protected]>
Subject   st: stat-transfer question
Date   Wed, 29 Jan 2003 12:15:17 -0500

I'm using the latest update of Stat-Transfer 7 and notice in the manual
supplement that value labels for strings (SPSS and SAS) are now supported.
I'm trying to convert a large file in SPSS format to Stata 8 format.

For numeric variables in the SPSS input file, the transfer to Stata format
works perfectly; all of the value and variable labels transfer nicely. Now
here's the challenge: I have some variables in the SPSS file that are, in
fact, numbers but which are stored as strings with value labels. Because
they are strings in SPSS, they are transferred as strings to Stata. Therein
lies the problem. Stata doesn't support value labels on strings and so I
lose the large list of value labels in the transfer. I tried to work around
the problem by recasting the SPSS variable from string to numeric but, alas,
SPSS insists on dropping the value labels during the conversion. I was
thinking that in an ideal world, Stat-Transfer would offer me the
flexibility of being able to choose the storage type in the output Stata
file. That is, I'd like to convert (SPSS string with value labels) to (Stata
float with value labels).

Any ideas on how to accomplish this?

Thanks,
Lee

Lee Sieswerda, Epidemiologist
Thunder Bay District Health Unit
999 Balmoral Street
Thunder Bay, Ontario
Canada  P7B 6E7
Tel: +1 (807) 625-5957
Fax: +1 (807) 623-2369
[email protected]
www.tbdhu.com

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index