not a Stata version 5-12 .dta file

Had the same problem and Roland’s suggestion of using read_dta from the haven package worked!

To reiterate Roland’s comment that helped form this solution. read.dta from the foreign package can only read files from Stata version 5 to 12 and your file seems to be created by a version outside that range.

haven’s read_dta can read dta files outside of this range.

Leave a Comment

tech