Home » Topics » Mortality » Code for Infant mortality (Dead or Alive)
Re: Code for Infant mortality (Dead or Alive) [message #11968 is a reply to message #11936] |
Tue, 14 March 2017 07:05 |
A.TIENDREBEOGO-BKF
Messages: 10 Registered: March 2017 Location: OUAGADOUGOU
|
Member |
|
|
First locate your variables: B3 (date of birth), B5 (child is alive) , B7 (age at death in months), v008 (date of interview)
Then create your 5 years periods preceding survey like that:
compute period = trunc((v008-1 - b3)/60).
You will have for this variable 0 (5 years preceding), 1 (5-9 years preceding), 2 (10-14 years preceding), etc.
You can now determine your infant mortality. Let us take an example to be more expressive.
At this level, there are 2 considerations to take into account.
1. if you are only interested inside a period, for example, the past 5 years, all born in this period (period=0) are the denominator because all born in this period died before one year or survive above one year. The numerator (infant deaths) can be calculated like that:
Period=0 and B5=0 and B7<12.
2. if you are interested to all infant deaths occurred in a period, you have to add up those children of the preceding period, in this example period=1 (59 years preceding) who died during 5 years period before on year. You can determine them like that by creating before, the period of death:
if (B5=0) cmc_death=B3+B7.
compute perdeath=trunc((v008-1-cmc_death)/period).
Then determine the children in this case (born in preceding period and died in the ongoing period before on year)
Period=1 and perdeath=0 and B7<12.
We determine the deaths, let us calculate now the denominator for such children by calculating their number at the beginning of the ongoing period (here period=0).
*compute number of months all child lived:
compute months = 0.
if (B5 = 0) months = b7.
if (B5 = 1) months = (v008 - b3).
Let us determine the beginning of the ongoing period: start=v008-1-60.
Then the denominator is:
start-B3<12 and months>=start.
Thinking this will be helpul to you.
|
|
|
Goto Forum:
Current Time: Mon Dec 2 08:35:40 Coordinated Universal Time 2024
|