Weighting in Namibia 2013 [message #13073] |
Thu, 14 September 2017 21:51 |
saf204
Messages: 7 Registered: February 2017
|
Member |
|
|
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!
|
|
|
|