Skip to content

R: Use of the Foreign package to import Stata files

2 messages · William Hart, Thomas Lumley

#
Hi,

An R newbie here.  I am using R 1.6 currently and have
(successfully, I think) installed the Foreign package.
 Tried to import a data file created with Stata 7.0
SE.  Had minor problems with syntax then R decided
that my file was not really a Stata file.  It rejected
the file saying 'Not created by Stata 5-7/SE'.  Any
suggestions on how to convince R that this is really,
truly a Stata file?

TIA,

Bill Hart
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Sat, 2 Nov 2002, William Hart wrote:

            
You need the version of read.dta that I wrote yesterday after finally
obtaining some 7/SE datasets for debugging.  If you can compile packages
then I can send you the code, otherwise you will have to wait for the next
version of the foreign package.

	-thomas



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._