The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Measuring postnatal care for baby (M70)
Re: Measuring postnatal care for baby (M70) [message #15047 is a reply to message #9007] Mon, 28 May 2018 08:16 Go to previous messageGo to previous message
Vaskset is currently offline  Vaskset
Messages: 12
Registered: May 2018
Member

Dear Sir/Madam,
I am comparing postnatal care for newborns in 2008 and 2014 in Ghana. I do not see "postnatal care for newborns' in the 2008 GHDS report and so I calculated it using inputs from some post on this forum but will like to know if the syntax is correct.

*###########conditions for postnatal care####
* age in months
gen age = v008-b3
lab var age "Age in months"
ta age
sort caseid bidx
* keep if under 24 months and living with mother
keep if age<25 & b9==0
codebook b9
* ... and keep the last born of those. If caseid is the same as the prior case, then not the last born.
drop if _n > 0 & caseid == caseid[_n-1]

gen posnababy=m71
replace posnababy=1001 if m71<=202 & m71!=.
replace posnababy=1000 if m71>202 & m71<=316
replace posnababy=1000 if m71==998 |m71==999
ta posnababy
Thank you.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Definition of ARI symptoms
Next Topic: Vaccination coverage using 2013 ndhs data set: Nigerian & dhs
Goto Forum:
  


Current Time: Sat Dec 21 10:47:05 Coordinated Universal Time 2024