Status:Closed    Asked:Mar 10, 2016 - 01:47 PM

cannot extract .dta.gz file

I cannot seem to extract a .dta.gz file and import it into R. The zipped file is about 100MB. Whether I unzip it using WinGZip and then import the actual .dta file into R, or try to unzip the whole file in R, I always end up getting an error that says ''not a Stata version 5-12 .dta file''.

Does anyone have any ideas about how to extract this file so that R will be able to read it?


Do you have the same question? Follow this Question

Staff Answer




The .dta files created by our extract system are formatted for Stata version 13. It appears the method you are using to import into R requires a .dta file intended for an older version of Stata. You might try the readstata13 package for R.

Hope this helps.


Mar 24, 2016 - 12:58 PM

Report it


After i unzipped an extract file, the resulting file did not have a file exte...
Cannot extract .dta.gz file in laptop with windows 8.1 OS
Why are not all the "not in the labour force" categories filled for the EMPST...
i got my data file with zinrar file, i extract the uas_0003.dat file to open...
R package 'ipums' can't read extract. Needs .XML file? No option for that???
Login   |   Register

Recently Active Members

View More »

Share |