The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » How to extract the survey data (Need information on extracting the survey data as a new user)
Re: How to extract the survey data [message #29408 is a reply to message #29391] Wed, 12 June 2024 08:46 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
Following is a response from Senior DHS staff member, Ali Roghani:

To load a DHS data file directly into R without using Stata or SPSS, you can use the haven package. Here's an example of how to do it:

library(haven) 
data <- read_dta("your_directory/your_file_name.DTA")

You should use your file path in the read_dta function.

[Updated on: Wed, 12 June 2024 13:20]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multilevel modelling sampling weights
Next Topic: Construction of level weights from individual weights
Goto Forum:
  


Current Time: Thu Nov 21 20:55:32 Coordinated Universal Time 2024