The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use (other programs) » Opening databases in RStudio
Opening databases in RStudio [message #11747] Mon, 06 February 2017 11:59 Go to previous message
dasanchezp is currently offline  dasanchezp
Messages: 11
Registered: February 2017
Location: San Sebastian
Dear DHS Program User Forum,

I downloaded many databases, but I realized RStudio does not get all the information (variables). Or maybe I am doing something wrong. I am reading the DHS Survey Manual and the Model Woman's Questionnaire and I found sections: 2 (Reproduction), 3 (Contraception), 4 (Pregnancy), 7 (Marriage and Sexual Activity) and 8 (Fertility Preferences), being these the sections of my interest. These sections should be in the women databases but I cannot find them.

For example, I downloaded Albania's database. Then, I opened ALIR50FL.SAV using R. In this file, I only have variables from V000 to V191, ML101 and from BIDX.01 to BIDX.05. Nothing else. I followed this code:

df=read.spss("ALIR50FL.SAV", = TRUE)

Indeed, I mainly need the sections described above.

May you help me, please?

Thanks in advance.

Best regards,

David A. Sanchez P.
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SAS formatting programs
Next Topic: Applying correct strata in SAS
Goto Forum:

Current Time: Tue Apr 16 22:35:10 Coordinated Universal Time 2024