The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Variable midx
Variable midx [message #16035] Wed, 24 October 2018 12:26 Go to next message
eduardoramosr is currently offline  eduardoramosr
Messages: 1
Registered: October 2018
Member
Dear DHS experts,

I'm taking my first steps on data managment and I'd be really thankful if you could help me solve a doubt I'm having for quite long.

I'm researching in maternal care and I'm trying to know how many women delivered their last child in the last 3-5 years. Is it correct that this information is represented by the variable "midx_1" from the IR dataset?

And if someone has experience with Stata:
-By putting "tab midx_1 if b5_01==1" can I interprete that as the number of whomen, who delivered their last children alive?


Thank you in advice.

Best regards
Re: Variable midx [message #16090 is a reply to message #16035] Fri, 02 November 2018 14:43 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3017
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


There are several ways to do this, without using midx. For example, if you want the number of live births in the past 3 years (completed months 0-35) you could do this:

gen ch_35=0
local li=1
while `li'<=6 {
replace ch_35=ch_35+1 if b19_0`li'<35
local li=`li'+1
}
tab ch_35


If you want the number of children born in the past 3 years who are still alive (b5=1) then use the following:


gen ch_35=0
local li=1
while `li'<=6 {
replace ch_35=ch_35+1 if b19_0`li'<35 & b5_0`li'==1
local li=`li'+1
}
tab ch_35


For the number of children born in the past 3 years who died (b5=0) use this:

gen ch_35=0
local li=1
while `li'<=6 {
replace ch_35=ch_35+1 if b19_0`li'<35 & b5_0`li'==0
local li=`li'+1
}
tab ch_35


For the last 5 years (months 0-59), just replace 35 with 59.

All the births in the birth histories are live births. b5 describes survival between the birth and the interview with the mother.

Previous Topic: Use of svy fxn in urban strata analysis
Next Topic: computing Concentration curves and Indices using stata
Goto Forum:
  


Current Time: Fri Mar 29 11:41:35 Coordinated Universal Time 2024