The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Uganda » Matching Domestic Violence Variable Data (Matching Domestic Violence data in report with dataset data)
Re: Matching Domestic Violence Variable Data [message #28884 is a reply to message #28677] Fri, 22 March 2024 09:50 Go to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 893
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:

We apologize for the three-week delay in this response.  It was necessary to go back to the original CSPro code that was used to construct the table.  You asked about table 18.8.1, but this depends on the construction of components of indicators given in table 18.7.1.  The challenge is to construct the third component of the sexual violence indicator, which depends on marital status.  Here is Stata code to match the sexual violence indicator in tables 18.7.1 and 18.7.2:

 
* Calculate the 3 components and the combined indicator for sexual violence
* Standard table for "Forms of spousal violence: Women" and  "Spousal violence
*   by background characteristics: Women", which only uses the combined indicator

* Illustrated with the Uganda 2006 survey, UG52
* Use codes 0/100 to get percentages with tabstat; for other purposes use 0/1

use "...UGIR52FL.DTA", clear

gen     v_sexualA=0
replace v_sexualA=100 if d105h>0 & d105h<9

gen     v_sexualB=0
replace v_sexualB=100 if d105i>0 & d105i<9

gen     v_forced=0
replace v_forced=100 if d123==2 | d124==1 | d125==1

gen     v_ini=0
replace v_ini=100 if v503==1 & d123==2 & (d127==1 | d127==2)

gen     v_sexualC=0
replace v_sexualC=100 if (v_forced==100 & v_ini==100)

gen     v_sexual=0
replace v_sexual=100 if v_sexualA==100 | v_sexualB==100 | v_sexualC==100

tabstat v_sexual*  if v502>0 [fweight=d005], statistics(mean) by(v024)
 
Read Message
Read Message
Previous Topic: Woman's Land Titel
Next Topic: A n Urgent Request: how to merge data files
Goto Forum:
  


Current Time: Sat Nov 30 11:47:53 Coordinated Universal Time 2024