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

st: Re: reading foreign binary files


From   Christopher F Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: reading foreign binary files
Date   Wed, 04 Sep 2002 06:36:22 -0500

--On Wednesday, September 4, 2002 2:33 -0400 Dan wrote:

Is there a comparable routine that would enable Stata to read RATS data
files? David Greenberg, Sociology Department, New York University
Stata does not read the binary files of any other program (not SPSS, not SAS, not Esxcel, not MATLAB...). In some cases one may use Stat/Transfer to translate binary datafiles from one format to another, but one of the few omissions from Stat/Transfer's repertoire is RATS. As far as I know the only option here would be to export the data from RATS into ASCII. It would be fairly straightforward to write a 'fromrats' routine that would read AATS' 'portable' format, which fully documents each variable (and provides its variable label), using Stata's file command.

It would be technically feasible, using Stata's file command, to write a routine that would read RATS binary files, but I think the far easier task would be to write a filter that could read format=portable files. The logic in Ulrich Kohler's recently published outdat might provide a useful model for such a routine.

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