|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: stata 10 to R
A Das said
I've been having trouble reading Stata 10 files
into R. The error message is:
Error in read.dta("C:/new.dta") : not a Stata version
5-8 .dta file
While I realize this is really an R question, I was
wondering if anyone here has had similar problems, and
found a solution. Thanks,
It seems to me the error message is perfectly clear. Stata 8 and 9
datafiles share the same format. R knows how to read them. Stata 10
datafiles have a different format, and even Stata 9 cannot read them.
If you have Stata 10, use -saveold- to create a Stata 8/9 format
file, which will then be readable by earlier versions of Stata and,
presumably, by R.
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
* 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/