The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » treatment seeking for ARI: Bangladesh DHS 2014
treatment seeking for ARI: Bangladesh DHS 2014 [message #9477] Thu, 31 March 2016 22:29 Go to previous message
zobidaislam is currently offline  zobidaislam
Messages: 6
Registered: March 2016
Location: Dhaka
Member
Hello,

I tried to estimate the proportion of children with ARI that sought treatment from a health facility or provider (according to the table 10.8, page-147 in Bangladesh DHS 2014) using the following stata code, but my estimate is different from the table. My estimate is 44.47, but the table states 42.0. Could you kindly tell me whats wrong with my code?

** I used kids record (BDKR4JFL)

* generate sampling weight
g wgt=v005/1000000

*symptoms of ARI (%)
gen ari=0 if b5==1 // b5: child is alive
replace ari=1 if b5==1 & h31b==1 & (h31c==1 | h31c==3)
tab ari [iw=wgt]

*suspected ARI taken to health facility
gen treat= 0 if ari==1
foreach x in a b c d e f i j l p s t u v w z {
replace treat=1 if ari==1 & h32`x'==1
}

tab treat if b5==1 [iw=wgt]

Thank you.
Zobi

[Updated on: Thu, 31 March 2016 22:32]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Stata Help
Next Topic: Is there a way to add household member's information to birth's recode file?
Goto Forum:
  


Current Time: Sat Apr 27 13:23:37 Coordinated Universal Time 2024