Dear R-helpers, if I want to read a .dta-file generated by stata 9.0 with read.dta (foreign), I get the message "not a stata version 5-8 .dta-file". I'm using R-2.6.2 and the latest version of the foreign package. Has someone any hint? With many thanks, Albrecht
Hi, Albrecht Kauffmann wrote (18.03.2008):> Dear R-helpers, > > if I want to read a .dta-file generated by stata 9.0 with read.dta > (foreign), I get the message > "not a stata version 5-8 .dta-file". I'm using R-2.6.2 and the latest > version of the foreign package. Has someone any hint?Seems quite obvious to me: "not a stata version 5-8" means, that the 9.0 version is not supported. So You should save the file in stata ver. 8 format and then give a new try. Hope this helps, Kimmo
On Tuesday 18 March 2008 03:33:02 pm K. Elo wrote: KE> Seems quite obvious to me: "not a stata version 5-8" means, that the 9.0 KE> version is not supported. So You should save the file in stata ver. 8 KE> format and then give a new try. KE> KE> Hope this helps, No. I have stata 9.2 and the data import works very well. So I doubt that it is "not supported". If you check the help you will see hints that 9 works. Albrecht, how do your data look like and what is the exact use of your read.dta? Stefan -- Microeconomics University of Erfurt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. Url : https://stat.ethz.ch/pipermail/r-help/attachments/20080318/89c238ea/attachment.bin