# IHIS data into R

**URL:** <https://forum.ipums.org/t/ihis-data-into-r/1262>\
**Category:** HEALTH SURVEYS\
**Created:** [April 10, 2016, 7:09pm UTC](https://forum.ipums.org/t/ihis-data-into-r/1262 "2016-04-10T19:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jov805](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jov805](https://forum.ipums.org/u/Jov805)\
**Post date:** [April 10, 2016, 7:09pm UTC](https://forum.ipums.org/t/ihis-data-into-r/1262/1 "2016-04-10T19:09:00Z")

</div>

I am hoping to use IHIS data for a thesis project in the R statistical package. I was wondering if anyone had any advice as to the fastest/least glitchy method to get data into R.

Thanks,

Josey

---

<div class="post-metadata">

**Author:** ![Tim\_Moreland](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Tim\_Moreland](https://forum.ipums.org/u/Tim_Moreland)\
**Post date:** [April 11, 2016, 9:41pm UTC](https://forum.ipums.org/t/ihis-data-into-r/1262/2 "2016-04-11T21:41:00Z")

</div>

A common way to open IHIS data in R is to generate your extract in Stata format (change “Data Format” on the [extract request screen](https://www.ihis.us/ihis-action/extract_requests/summary) to “STATA”). You can then access this formatted data extract through the “STATA” link that will be generated under the “Formatted Data” column on the “[Download or Revise Extracts](https://www.ihis.us/ihis-action/extract_requests/download)” page. You can then read this .dta file into R with the read.dta13 command found in the [readstata13](https://cran.r-project.org/web/packages/readstata13/readstata13.pdf) package.

Hope this helps.
