Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: importing spss data


From   Ronan Conroy <rconroy@rcsi.ie>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: importing spss data
Date   Tue, 22 Jul 2008 23:27:56 +0300

On 22 Jul 2008, at 21:34, SR Millis wrote:

While in SPSS, save your data as a tab-delimited or comma-delimited file.

Then read the data into Stata using the infile, infix, or insheet command, depending on the file format. For information about infiling data and the method you should use, see the help file for infiling.

This solution does have the disadvantage that variable labels, value labels and missing value information are lost.

The option to save a Stata file from within SPSS is good, but a little investment in StatTransfer is something that rapidly pays for itself in time saved. Though personally I spend this time drinking cappuccinos, so the added costs would have to be factored in too.


Ronan Conroy
=================================

rconroy@rcsi.ie
Royal College of Surgeons in Ireland
Epidemiology Department,
Beaux Lane House, Dublin 2, Ireland
+353 (0)1 402 2431
+353 (0)87 799 97 95
http://www.flickr.com/photos/ronanconroy/sets/72157601895416740/

P Before printing, think about the environment




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