The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Difference between data and report (Discrepancy in data vs country survey report)
Re: Difference between data and report [message #25324 is a reply to message #25317] Tue, 04 October 2022 11:09 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 893
Registered: April 2022
Senior Member
Following is a response from DHS staff member Tom Pullum:

The Stata code pasted below matches table 10.1 for the categories of v101 (which is the same as v024):

* construct table 10.1 in the report on the Pakistan 20117-18 survey
use "...PKKR71FL.DTA", clear

label list M18
gen size=.
replace size=1 if m18==5
replace size=2 if m18==4
replace size=3 if m18<=3
replace size=4 if m18==8 | m18==.
label define size 1 "very small" 2 "< average" 3 "average + " 4 "DK/missing"
label values size size
tab v101 size [iweight=v005/1000000], row


label list M19
gen weight_measured=0
replace weight_measured=1 if m19<9996
label define noyes 0 "No" 2 "Yes"
label values weight_measured noyes
tab v101 weight_measured [iweight=v005/1000000], row

gen low_birth_wt=0 if weight_measured==1
replace low_birth_wt=1 if weight_measured==1 & m19<2500
label values low_birth_wt noyes
tab v101 low_birth_wt [iweight=v005/1000000], row
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child discipline
Next Topic: weights in india DHS(NFHS5)
Goto Forum:
  


Current Time: Sun Dec 1 20:25:25 Coordinated Universal Time 2024