The DHS Program User Forum
Discussions regarding The DHS Program data and results
Today's Messages (on)  | Unanswered Messages (off)

Forum: Mortality
 Topic: Working through Odds Ratios
Re: Working through Odds Ratios [message #29136 is a reply to message #29078] Mon, 29 April 2024 05:50
shivani is currently offline  shivani
Messages: 11
Registered: March 2021
Member
still facing problem in working with the data. I am dealing with the same BR file, and looking at the variable b8 (age of child in years), the range is between 0-40 years. I also tried to recheck by creating the age variable on my own. Seeking help from the recode file, I created the variable of "age of the child in months" by using the following commands:
gen age2= (v008a-b18)/30.4375
gen age3 = round(age2)

the problem remains intact. How is children aged more than 60 (when measured in months).
Attaching the screenshot for your reference


PS: I downloaded the dataset from DHS website only

[Updated on: Mon, 29 April 2024 05:50]

Report message to a moderator

Forum: Dataset use in Stata
 Topic: DHS 5 India dataset IR file-r900 error
Re: DHS 5 India dataset IR file-r900 error [message #29138 is a reply to message #29134] Mon, 29 April 2024 07:36
Bridgette-DHS is currently online  Bridgette-DHS
Messages: 3044
Registered: February 2013
Senior Member
The data 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.
 Topic: Strange Issues w/ Data Formatting from DHS
Re: Strange Issues w/ Data Formatting from DHS [message #29139 is a reply to message #29068] Mon, 29 April 2024 08:04
tednoel is currently offline  tednoel
Messages: 3
Registered: April 2024
Member
Hi Trevor, THANK YOU SO MUCH. I have been mostly able to solve the problem thanks to the help you have given me. I have one remaining challenge in order to move forward and that is the merging of the different survey data sets for each survey round. So, to be clear, I am interested in controlling for wealth in my proportional hazard. This means that I will have to combine household data and individual data, as indicators for wealth do not exist in the individual recode for Tanzania 1999 (the year I'm starting this data work with). I have read from Tom Pullum in another part of this forum that "it would be virtually impossible to merge them [individual survey] with the HR file, which has households as units. You should use the PR file, which has individual household members as units, rather than the HR file." However, it's not clear to me that wealth is included in the PR file, either. To make matters a bit more confusing, I have seen that this type of merge is possible elsewhere on the internet, for example: https://www.researchgate.net/post/How_can_I_merge_Household_ database_to_Women_data_base_in_the_DHS_data_using_stata

Do you mind clarifying if it is possible to merge household and individual level data? This is the only way I will be able to control for wealth in my proportional hazards analysis. Thank you so much in advance for your time.
Forum: Domestic Violence
 Topic: WOMEN'S EMPOWERMENT
Re: WOMEN'S EMPOWERMENT [message #29140 is a reply to message #14019] Mon, 29 April 2024 08:43
kimiakawzemi is currently offline  kimiakawzemi
Messages: 2
Registered: April 2024
Member
<a href="https://karentejaratoil.com/">karentejaratoil</a>
Re: WOMEN'S EMPOWERMENT [message #29141 is a reply to message #29140] Mon, 29 April 2024 08:44
kimiakawzemi is currently offline  kimiakawzemi
Messages: 2
Registered: April 2024
Member
<a href="https://stpromet.com/">stpromet</a>



Current Time: Mon Apr 29 11:45:08 Coordinated Universal Time 2024