The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » DHS 5 India dataset IR file-r900 error (DHS 5 India dataset IR file-r900 error how to proceed further)
DHS 5 India dataset IR file-r900 error [message #29134] Sun, 28 April 2024 12:11 Go to next message
RS is currently offline  RS
Messages: 1
Registered: April 2024
Member
While opening IR file in Stata/IC 14.2 i am getting following error in STATA

Can anyone help to troubleshoot this?

Re: DHS 5 India dataset IR file-r900 error [message #29138 is a reply to message #29134] Mon, 29 April 2024 07:36 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
The dataset you are using has over 2,048 variables. IC or "inter-cooled" version of Stata cannot handle more that 2,048 variables, so I strongly recommend that you get an upgrade to Stata SE. To accommodate more variables in Stata SE, please use the following command: set maxvar 20000

If you cannot upgrade, a simple workaround is to download the .do, .dct, and .dat (flat ASCII data) that are used to construct the .dta file, edit the .do and .dct files by deleting big blocks of variables, and then reconstruct the .dta file. Or you can use IPUMS-DHS at www.idhsdata.org, to create a subset of the dataset, with fewer than 2048 variables, which can then be opened in Stata/IC.

[Updated on: Mon, 29 April 2024 11:48]

Report message to a moderator

Previous Topic: Merging Birth's / Chidren's with Household Member Recode
Next Topic: Duration of Pregnancy
Goto Forum:
  


Current Time: Wed Nov 27 01:24:54 Coordinated Universal Time 2024