Question

Status:Closed    Asked:Sep 13, 2013 - 10:14 AM

Is it possibel to use ipums data in R?

I don't have access to other software besides R. I was wondering if there was a command file to use the .DAT file in R, or if there was a way to adjust one of the other files to use in R.


Thanks

 
Do you have the same question? Follow this Question
 

Staff Answer

While we do not provide support for using IPUMS data in R, it is possible, and some users do use R to analyze IPUMS data. One common approach is to request a CSV file from us (click 'change' to the right of 'data format' before submitting your extract request). Then, users often import into a database such as SQLite using a package such as sqldf. You can find a general code template for doing this here.

 

Sep 13, 2013 - 10:31 AM

1
0
Report it

Answers

Here's what I do:


(1) choose "STATA" as "data format" in, for example, https://usa.ipums.org/usa-action/extr...


(2) in R:

library(foreign)

df <- read.dta("ipums_filename.dta")


This reads the ipums file into a dataframe named "df".



 

Jan 28, 2014 - 10:58 AM

0
0
Report it

OTHER QUESTIONS NEEDING ANSWERS

Why can't I extract the .dat file from the gz file with WinZip?
I can not readin dat file from IPUMs.
opening .dat IPUMS file in stata
My last few data extracts have not been showing a link to the command file fo...
Login   |   Register

Recently Active Members

View More »

Share |