Question

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?


Thanks!

 
Do you have the same question? Follow this Question
 

Staff Answer

avatar

Tim_Moreland

Staff

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

0
0
Report it

OTHER QUESTIONS NEEDING ANSWERS

Cannot extract .dta.gz file in laptop with windows 8.1 OS
i got my data file with zinrar file, i extract the uas_0003.dat file to open...
Hi I am trying to download an extract and turn it into a DTA file to use in S...
Health Insurance Unit in ACS versus MEPS
Login   |   Register

Recently Active Members

View More »

Share |