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 |
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?
|
|
|
|
|
Still births-infant mortality
By: A.Z_Epi on Sat, 06 February 2021 16:04
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: A.Z_Epi on Thu, 11 February 2021 22:10
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 24 February 2021 06:46
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 24 February 2021 19:15
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 03 March 2021 16:26
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Thu, 04 March 2021 13:28
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 03 March 2021 16:51
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 03 March 2021 19:05
|
|
|
Re: Still births-infant mortality
By: SamH79 on Thu, 04 March 2021 13:31
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Fri, 05 March 2021 11:26
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 10 March 2021 18:20
|
|
|
Re: Still births-infant mortality
By: SamH79 on Wed, 10 March 2021 18:31
|
|
|
Re: Still births-infant mortality
|
|
|
Re: Still births-infant mortality
By: SamH79 on Tue, 13 April 2021 20:20
|
|
|
Re: Still births-infant mortality
|
Goto Forum:
Current Time: Thu Jan 9 14:39:06 Coordinated Universal Time 2025
|