The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Infant Mortality-DHS Guide is not help enough
Infant Mortality-DHS Guide is not help enough [message #14282] Sun, 18 March 2018 10:00
LJ02 is currently offline  LJ02
Messages: 1
Registered: February 2018
Member
Hi,

I am trying to calculate Infant mortality and even though I've the Guide a thousand time I seem to be missing something, because my results do not match the final report:

I am using R code, but it's really not about the code, but about the understanding of how to define the cohorts, the nominator and the denominator:

##Variables I use:
#b3:date of birth in CMC
#b5: Child Alive? yes=1, no=0
#b7:age at death in month
#b13=flag for age of death
#sweights = sample weights
#v008 date of interview
#v024:state id's

#Reference Period:
Reference Period:Five years (60 month) before survey/interview->upper limit(tu=v008-1) ; lower limit(tl=v008-1-60)

#Cohortes (as an example age segment=0 month & 1-2 month)
cohort_a_null_month= b3>=(v008-1-60)-0 &b3<=(v008-1-60)-0
cohort_b_null_month= b3>=(v008-1-60)-0 & b3<=(v008-1)-0
cohort_c_null month= ifelse(b3>=(v008-1)-0 &b3<=(v008-1)-0
cohort_a_one_two_month= b3>=(v008-1-60)- & b3<=(v008-1-60)-1
cohort_b_one_two_month=b3>=(v008-1-60)-1 & b3<=(v008-1)-2 cohort_c_one_two_month= b3>=(v008-1)-2 & b3<=(v008-1)-1

# definition of deaths in cohorts(as an example age segment=0 month & 1-2 month)
cohort_a_null_month_deaths= children belong to cohort_a_null_month & b7==0 & b5==0
cohort_b_null_month_deaths= children belong to cohort_b_null_month & b7==0& b5==0
cohort_c_null_moths_deaths= children belong to cohort_c_null_month & b7==0& b5==0
cohort_a_one_two_month_deaths= children belong to cohort_a_one_two_month & b7>=1 & b7<=2& b5==0
cohort_b_one_two_month_deaths= children belong to cohort_b_one_two_month & b7>=1 & b7<=2& b5==0
cohort_c_one_two_month_deaths=children belong to cohort_b_one_two_month &b7>=1 & b7<=2& b5==0


#definition of survivors in cohorts(as an example age segment=0 month & 1-2 month)
cohort_a_null_month_survivors= children belong to cohort_a_null_month& b5==1 or children belong to cohort_a_null_month & b7>0

cohort_b_null_month_survivors= children belong to cohort_b_null_month& b5==1 or children belong to cohort_b_null_month & b7>0

cohort_c_null_month_survivors= children belong to cohort_c_null_month& b5==1 or children belong to cohort_c_null_month & b7>0

cohort_a_one_two_month survivors= children belong to cohort_a_one_two_month & b5==1 or children belong to cohort_a_one_two_month & b7>1

cohort_b_one_two_month survivors=
cohort_b_one_two_month & b5==1 or children belong to cohort_b_one_two_month & b7>1

cohort_c_one_two_month survivors= children belong to cohort_c_one_two_month & b5==1 or children belong to cohort_c_one_two_month & b7>1


numerators: as example for age segment=0
numerator for age segment 0= sums of (0.5* sums of cohort_a_null_month_deaths per individual state)+ sum of cohort_b_null_month_deaths per individual state+ sum of cohort_c_null_month_deaths per individual

denominators: as example for age segment=0
denominator for age segment 0= sums of (0.5* sums of cohort_a_null_month_survivors per individual state)+ sum of cohort_b_null_month_survivors per individual state+ sum of cohort_c_null_month_survivors per individual

Could you please tell me what I'm missing here?
Previous Topic: Under 5 mortality codes KDHS
Next Topic: Missing value in Birth file-NFHS4
Goto Forum:
  


Current Time: Sat Apr 20 09:29:00 Coordinated Universal Time 2024