The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Still births-infant mortality (analysis STATA)
Re: Still births-infant mortality [message #22202 is a reply to message #22145] Thu, 11 February 2021 22:10 Go to previous messageGo to previous 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?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calculating perinatal mortality rate for each of the five years preceding the survey
Next Topic: Are the respondents for varioud data sets the same group of people?
Goto Forum:
  


Current Time: Thu Jan 9 04:03:23 Coordinated Universal Time 2025