Re: 2013 Namibia DHS data: Numbers not matching [message #13705 is a reply to message #13695] |
Mon, 11 December 2017 12:28  |
Bridgette-DHS
Messages: 3230 Registered: February 2013
|
Senior Member |
|
|
Following is another response (from Senior DHS Stata Specialist, Tom Pullum):
In the Namibia 2013 survey, it appears that there was a household-level selection criterion given by hv042, "household selected for hemoglobin", that refers to much more data than just the hemoglobin measurements. The information about children under five is only included for households with hv042=1. The following lines can be used to reduce the KR file to those households.
These households were randomly selected, so estimates from the KR file should be unbiased. You will find more information on this in the main report on this survey.
set more off
use e:\DHS\DHS_data\PR_files\NMPR61FL.dta, clear
keep if hvidx==1
keep hv001 hv002 hv042
tab hv044
rename hv001 v001
rename hv002 v002
sort v001 v002
save e:\DHS\DHS_data\scratch\temp.dta, replace
use e:\DHS\DHS_data\KR_files\NMKR61FL.dta, clear
keep v001 v002 hw1 b*
sort v001 v002
merge v001 v002 using e:\DHS\DHS_data\scratch\temp.dta
tab _merge
keep if _merge==3
tab hw1 hv042,m
tab hw1 b5 if hv042==1,m
[Updated on: Mon, 11 December 2017 13:39] Report message to a moderator
|
|
|