Dana Chandler asked:
I just downloaded a bunch of data from ICPSR, but unfortunately not
all of it has stata do files to go from the fixed width .txt raw data
to a stata .dta dataset.
ICPSR does, however, provide setup files for SPSS and SAS. I can guess
at what the syntax is and then manually adjust it to write a stata do
file. Since it's a rather slow process, 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.
Thanks,
Dana
There is a usespss ado on SSC. That should solve your immediate problem.
But even better follow Steve Dubnoff's advice and get Stat Transfer. It is an excellent program and if you use ICPSR regularly, you can download SPSS data files and immediately convert them to Stata.
HTH,
Ric
*
* 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/