| PNC provider for newborn in 2014 and 2022 Kenya datasets [message #31988] |
Wed, 07 October 2026 17:54 |
ssoa
Messages: 5 Registered: March 2019
|
Member |
|
|
Dear DHS Forum members,
I am trying to calculate the indicator "Provider of newborns' first postnatal checkup: Doctor/nurse/midwife" using the 2014 and 2022 Kenya KR datasets. The definition in STAT Compiler is: Percentage of last births in the two years preceding the survey who received their first postnatal checkup in the first two days after birth from a doctor, nurse, or midwife.
I checked the DHS GitHub for guidance, which uses the IR dataset. Regardless of the dataset used (KR or IR), I get the same estimates. Therefore, I will detail the issues using the KR dataset.
In both survey years (2014 and 2022), I used m72, following the GitHub directions:
2014 - person who performed postnatal checkup
2022 - who checked child's health after discharge/home delivery
1. When I replicated the GitHub code ( https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap09_RH/RH_PNC.do), I get the following estimates:
2014
# observations: 7924; population size: 7356.55
No check 82.9%
Doctor 6.9%
Nurse/Midwife 9.0%
No skilled provider 1.2%
2022
# observations: 7518; population size: 6727.51
No check 91.2%
Doctor 2.3%
Nurse/Midwife 2.7%
No skilled provider 3.8%
2. When I tried my code (see below), I got the following estimates:
2014
# observations: 7925; population size: 7356.81
Skilled provider 29.0%
No skilled provider 71.0%
2022
# observations: 7518; population size: 6727.51
Skilled provider 26.2%
No skilled provider 73.8%
This is the code I have been using in Stata:
*PNC babies skilled provider
gen spncbaby = .
capture anymissvar m72 // who checked child's health
replace spncbaby = 0 if lastborn == 1 & agemo < 24
egen _spnc = anymatch(m72), v(11 12)
egen _spnc2 = anymatch(m72), v(11 12)
recode spncbaby (0=1) if (_spnc == 1 | _spnc2 == 1) & agemo < 24
lab var spncbaby "PNC babies skilled provider"
lab val spncbaby yn
foreach val in 2014 2022 {
cap n d "`val'"
svy: prop spncbaby if year == `val'
}
3. STAT Compiler reports different estimates (below):
Kenya 2022 DHS; 79.5%; 6,847
Kenya 2014 DHS; 33.1%; 3,544
I would appreciate it if someone could provide some guidance on how to fix this issue and generate estimates closer to STAT Compiler.
Many thanks!
|
|
|
|