Status:Closed    Asked:Nov 14, 2014 - 01:35 PM

After i unzipped an extract file, the resulting file did not have a file extension, including .dat. ideas?

I successfully got an extract into STATA to produce a dataset, but the var frequencies were not what I expected. I went back through my steps and found that I had not unzipped the extract; when I went back to do this the unzipped file had no extension. It runs the command file on this .raw file, but still the freqs don't seem right. Please let me know if you think the no file extension piece is what's at play here. If not, is there someplace on IPUMS site with freqs or sample sizes for each of the samples so I can compare. Thanks.

Do you have the same question? Follow this Question

Staff Answer




I am unsure what would have caused your unzipped file to not have an extension. You can check the Codes tab (select "Case-count view") for almost any variable to see a frequency by sample. If your counts are not matching the IPUMS website, then you should resubmit your data extract, download it, and unzip the file.

Since the STATA command file should not have run on an unzipped extract, I would also recommend checking that your working directory in STATA matches the location of your STATA command file and .dat file. It could be the case that you were inadvertently running a different version of the data file. This would explain the unexpected frequencies. Similarly, double-check that you are using the STATA command file that matches the name of your data extract.

I hope this helps.


Nov 17, 2014 - 01:14 PM

Report it


Why can't I extract the .dat file from the gz file with WinZip?
cannot extract .dta.gz file
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 |