Statalist


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

Re: st: Converting SAS or SPSS setup files to stata do files


From   Alan Acock <acock@mac.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Converting SAS or SPSS setup files to stata do files
Date   Tue, 28 Jul 2009 16:07:26 -0700

The newer versions of SPSS or whatever they call it now, have a save as
option to save data as a Stata file. This works okay. You will want to
compress the data when you open it in Stata because SPSS wastes a lot of
space.

---Alan Acock


On 7/28/09 3:31 PM, "Steven Dubnoff" <sdubnoff@circlesys.com> wrote:Steven
Dubnoff

>> I was hoping someone had a
>> perl script or other way to use regular expressions or what have you
>> to convert a SAS or SPSS setup file to a stata dictionary.
> 
> I am not aware of any tool that does the job.  The simplest thing to
> do is to beg or borrow a copy of SPSS, read the data, save it .sav
> format and then run that file through Stat/Transfer.
> 
> If that is not an option, Stat/Transfer's own schema format is very
> similar to SPSS's. It would not take much, if any, editing to convert
> the SPSS syntax files to Stat/Transfer schema files.  Stat/Transfer
> can then write either a .dta or a .do file for you.
> 
> 
> Best,
> 
> Steve
> 
> 
> 
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index