The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » % Consanguinity Jordan 2017/18 and 2012 (Calculating different % than the ones in the final report)
Re: % Consanguinity Jordan 2017/18 and 2012 [message #21875 is a reply to message #21862] Mon, 04 January 2021 15:40 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

Working with the 2017 data, I am able to match the final report with the Stata code found below.
I think perhaps you have forgotten to weight the data. You need to apply weights to match the final report tables.

Thank you.
Best,
Shireen Assaf
The DHS Program


Stata code:

gen consang=s711b
replace consang=0 if s711a==0
label values consang S711B

gen wt=v005/1000000

ta s711a [iw=wt]
ta consang [iw=wt]

*by region
ta v024 s711a [iw=wt], row

*get get ibn al amm, see category #3
ta v024 consang [iw=wt], row
 
Read Message
Read Message
Read Message
Previous Topic: Missing data for C-section variable (m17) for births prior to the most recent
Next Topic: Discrepancy in population totals for postnatal checkup-India (NFHS 4)
Goto Forum:
  


Current Time: Sun Apr 28 08:18:46 Coordinated Universal Time 2024