The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Still births-infant mortality (analysis STATA)
Still births-infant mortality [message #22145] Sat, 06 February 2021 16:04 Go to next message
A.Z_Epi is currently offline  A.Z_Epi
Messages: 2
Registered: February 2021
Member
I am doing an analysis on DHS for the following question.
"maternal education associated with child mortality" (stillbirths, infant). I have restricted the analysis to the births in the last 5 years preceding the survey.

1)Initially, I am just trying to calculate the numbers for infant and still births (to calculate power).
For example for the number of children who died in the neonatal period, I am using the command
tab b7 exposure v if b19<60 where I have recoded b7 into 0/1=neonatal 3/12 post-neonatal number of deaths. (What can I do for the older DHS where b7 variable is not present).

2)I wish to know the code I need to calculate the number of stillbirths.

3)Later if plan to calculate odds for this association in logistic regression. Do I need to create an event file (tutorial 5 of contraceptive calendar) ?

I am not an expert Stata user. I have already tried the tread message #15076] in this forum but it did not work.

I hope you can guide me in the right direction
Thanks in advance.

[Updated on: Mon, 08 February 2021 13:17]

Report message to a moderator

Re: Still births-infant mortality [message #22170 is a reply to message #22145] Tue, 09 February 2021 07:57 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 2167
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

Neonatal deaths are those with b7=0. Post-neonatal have 1<=b7<=11. Months of age at death are completed months, so in the first month a child's age is 0 months. Deaths under 5 years, i.e. before the 5th birthday, have b7<=59.

Stata code for the child mortality chapter of the main report, including stillbirths and perinatal mortality, is in our new GitHub site. Go to www.dhsprogram.com, the Data tab, and click on Data Users Forum. The link to the GitHub site is in the lower left corner of that page. You should be able to do most of what you want by using the BR (or KR) file, in which births are cases. To get at stillbirths you will probably need to get into the calendar data. I suggest that you start by doing as much as you can without the calendar.
Re: Still births-infant mortality [message #22202 is a reply to message #22145] Thu, 11 February 2021 22:10 Go to previous messageGo to next message
A.Z_Epi is currently offline  A.Z_Epi
Messages: 2
Registered: February 2021
Member
Thank you for your reply it has clarified the problems. I have questions for a stata code I have used to calculate stillbirths and it has worked but I am second guessing if it exactly applies.

I have calculated total stillbirths using the IR file.

use caseid v001 v002 v003 v005 v008 v011 v013 v017 v018 v021 v022 v023 v024 v025 v106 v190 v231 v242 b3*
> vcal_1 using"C:PKIR71FL.DTA", clear

. gen stillbirths = regexm(vcal_1,"TPPPPPP")

.
.
.
. gen early_neonatal_deaths = 0

.
. gen infant_deaths = 0

.
. gen child_deaths = 0

.
.
.
. * rename birth variables for use in forvalues loop

.
. rename b*_0* b*_*

.
.
.
. * Any early neonatal deaths, infant deaths, child deaths

.
. forvalues b = 1/20 {
2.
. * early neonatal - days 0-6
.
. replace early_neonatal_deaths = 1 if inrange(b6_`b',100,106)
3.
. * infant - from birth trough age 11 months
.
. replace infant_deaths = 1 if inrange(b6_`b',100,211)
4.
. * child from 12 months up through 4 completed years
.
. replace child_deaths = 1 if inrange(b6_`b',212,304)
5.
tab stillbirths = 261 (also after using the iweight command)



the table Pakistan Demographic and Health Survey 2017-18 shows a total of 249 stillbirths.

Can you please guide where I might be making an error?
Re: Still births-infant mortality [message #22239 is a reply to message #22202] Wed, 17 February 2021 08:02 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 2167
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

You are identifying stillbirths with a string TPPPPPP, that is, a termination preceded by 6 (or more) months of pregnancy. T identifies terminations other than a live birth, and includes miscarriages, abortions, and stillbirths. However, if T is preceded by 6+ months of pregnancy, it is almost sure to be a stillbirth. That would be the usual assumption.

If a T occurs near month 80 of the calendar, there may be fewer than 6+ months of pregnancy. In fact, you will find some T's right in month 80, with NO preceding P's. (This point is probably not serious because you are probably not using the full calendar for your reference period.)

You are probably looking for stillbirths within the past 3 years. This means that the T occurred in that interval, not that TPPPPPP occurred in that interval. You need to identify these strings and THEN restrict to those for which T is in the past 3 years.

Note that the number of events given in the report will be weighted by v005. If your number is unweighted, and the number in the report is weighted (and rounded to the nearest integer) there will be a difference.

Please let us know if you still cannot get a match, taking these things into account.

Did you check how the GitHub code identifies stillbirths as a component of perinatal deaths?
Re: Still births-infant mortality [message #22289 is a reply to message #22239] Wed, 24 February 2021 06:46 Go to previous messageGo to next message
SamH79 is currently offline  SamH79
Messages: 2
Registered: October 2019
Member
Dear Bridget
I have tried to calculate perinatal mortality (Stillbirth + early Neonatal) for SEA countries, but I have been confusing and stopped when using the loop and forevalues (from the calendar tutorial).

https://www.dhsprogram.com/data/calendar-tutorial/

Is there any simple method of calculating the perinatal mortality in different way with the calender tutorial?

Thanks
Sam
Re: Still births-infant mortality [message #22294 is a reply to message #22289] Wed, 24 February 2021 08:19 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 2167
Registered: February 2013
Senior Member
Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

A Stata program for this indicator is included in the GitHub programs for chapter 8 of the main report:
https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap08_CM/CM_PMR.do

Re: Still births-infant mortality [message #22303 is a reply to message #22294] Wed, 24 February 2021 19:15 Go to previous messageGo to next message
SamH79 is currently offline  SamH79
Messages: 2
Registered: October 2019
Member
Thank you it is really helpful and works great.

I will also expand my research question to SURVIVAL STATUS/TIME of perinatal mortality,
Is there any experience using DHS data to calculate such objectives? or any state command/syntax?

Best Regards,
Sam

Re: Still births-infant mortality [message #22310 is a reply to message #22303] Thu, 25 February 2021 08:24 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 2167
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

I don't believe survival analysis is possible with perinatal mortality. What would be the "time" variable?
Previous Topic: missing values in prenatal care
Next Topic: Most recent born Vs All births in Five Years
Goto Forum:
  


Current Time: Tue Mar 2 16:17:27 Coordinated Universal Time 2021