The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Issues with weighting NEW Ethiopian DHS-2019
Re: Issues with weighting NEW Ethiopian DHS-2019 [message #23276 is a reply to message #23223] Mon, 16 August 2021 08:47 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

For children's anthropometry indicator you need to use the PR file and no merge is required. The code below will match the stunting indicator for example.

gen wt=hv005/1000000
//Stunted
gen nt_ch_stunt= 0 if hv103==1
replace nt_ch_stunt=. if hc70>=9996
replace nt_ch_stunt=1 if hc70<-200 & hv103==1
label var nt_ch_stunt "Stunted child under 5 years"


You can find this code and other code for DHS indicators listed in the Guide to DHS Statistics on our GitHub site: https://github.com/DHSProgram/DHS-Indicators-Stata
Specifically, this code is in Chapter 11 in the NT_CH_NUT.do file. We also have the code in SPSS here: https://github.com/DHSProgram

Please read the readme file and the main files for each chapter before using the code.

Thank you.
Best,
Shireen Assaf
The DHS Program
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nigeria DHS 2018: Weighting for Multilevel Model
Next Topic: How to use weights when using different samples of women
Goto Forum:
  


Current Time: Wed Apr 24 17:02:38 Coordinated Universal Time 2024