The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Weighting in Namibia 2013
Weighting in Namibia 2013 [message #13073] Thu, 14 September 2017 21:51 Go to previous message
Messages: 7
Registered: February 2017
Hi all.

For Namibia 2013, I've merged the person recode with the men's dataset to track down the men's individual sample weights. However, when I merge into the PR dataset, I am missing quite a few men's individual sampling weights.

use "c: /NMMR61FL.dta", clear
rename mv001 hv001
rename mv002 hv002
rename v003 hvidx
gen in_IR=1
sort hv001 hv002 hvidx

save "c:/NMMR61FL.dta", replace

use "c: NMPR61FL.dta", clear
gen in_PR=1
sort hv001 hv002 hvidx

merge hv001 hv002 hvidx using "c:/NMMR61FL.dta"

tab1 _merge in_PR in_IR

keep if in_PR==1 & in_IR==1

tab _merge
drop _merge

Am I missing something here? Thanks!
Read Message
Read Message
Previous Topic: De-normalizing weights and svyset command in Stata
Next Topic: Weighting data for descriptive analysis of background characteristics
Goto Forum:

Current Time: Mon Dec 4 12:27:44 Coordinated Universal Time 2023