The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Ghana DHS 2022 (Immunisation)
Re: Ghana DHS 2022 [message #30499 is a reply to message #30473] Tue, 10 December 2024 10:01 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 911
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:
The code below is in Stata but you can convert it to SPSS. It matches the table for the totals row and the wealth quintiles. I suspect that you were not using weights. All results in the final reports are weighted. Also the denominator must be limited to living children (b5=1).
use "...GHKR8BFL.DTA", clear

* BCG: h2; DPT: h3 h5 h7; Polio: h4 h6 h8; Measles: h9
* vaccinated if code is 1 or 2 or 3

forvalues lv=2/9 {
gen h`lv'r=1 if h`lv'>=1 & h`lv'<=3
}

gen fully=0 if b5==1 & b19>11 & b19<24
replace fully=1 if fully==0 & h2r==1 & h3r==1 & h4r==1 & h5r==1 & h6r==1 & h7r==1 & h8r==1 & h9r==1

tab v190 fully [iweight=v005/1000000] , row
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ARI data and commands in STATA
Goto Forum:
  


Current Time: Wed Dec 25 15:45:07 Coordinated Universal Time 2024