William Hart
2002-Nov-02 19:36 UTC
[R] R: Use of the Foreign package to import Stata files
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley
2002-Nov-03 02:36 UTC
[R] R: Use of the Foreign package to import Stata files
On Sat, 2 Nov 2002, William Hart wrote:> 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? >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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._