The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » Discrepancies in results
Re: Discrepancies in results [message #24719 is a reply to message #24708] Tue, 28 June 2022 09:38 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 698
Registered: April 2022
Senior Member
Following is a response from Senior DHS Specialist, Kerry MacQuarrie:

Attached is the full code that I ran and which produces estimates matching Table 14.6 on p.228 of the Pakistan DHS 2012-13 final report. I hope this helps!

Stata code:
use "C:\DHSdata\PKIR61FL.DTA", clear
gen wt=d005/1000000

lab def yesno 1 "Yes" 0 "No"

*emotional violence
recode d104 (9=0),g(ev)
lab var ev "Ever experienced spousal emotional violence"
lab val ev yesno

*physical violence
gen pv=d106
replace pv=1 if d107==1
recode pv(9=0)
lab var pv "Ever experienced spousal physical violence"
lab val pv yesno

ta v025 ev [iw=wt], row
ta v023 ev [iw=wt], row
ta v025 pv [iw=wt], row
ta v023 pv [iw=wt], row

Output:
/index.php?t=getfile&id=1871&private=0
/index.php?t=getfile&id=1872&private=0
/index.php?t=getfile&id=1873&private=0
/index.php?t=getfile&id=1874&private=0



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: India DHS 2019-21: Mismatch in number of observations
Next Topic: India- NFHS-4 Discrepancy in getting data data on ever experienced physical violence
Goto Forum:
  


Current Time: Thu Apr 25 07:47:05 Coordinated Universal Time 2024