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 #29410 is a reply to message #29409] Wed, 12 June 2024 16:25 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3190
Registered: February 2013
Senior Member
Following is a response from Senior DHS staff member, Ali Roghani:

Usually, with `read_dta`, you can import the data. Make sure your data is in DTA format. Two approaches can be helpful in dealing with this technical issue related to the machine/laptop.

First, you can run this code in RStudio:
```R
Sys.setenv(R_MAX_VSIZE = 16e9)
```
You might need to change the size too.

The second approach is:
1. Open Terminal
2. Run the following commands:
   ```sh
   cd ~
   touch .Renviron
   open .Renviron
   ```
3. Save the following as the first line of .Renviron:
   ```sh
   R_MAX_VSIZE=16Gb
   ```
4. Close RStudio and reopen it

You might need to adjust this parameter depending on the specifications of your machine. Please let us know whether one of these approaches works for you.

[Updated on: Thu, 13 June 2024 06:33]

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: Mon Nov 11 10:58:50 Coordinated Universal Time 2024