The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » Calculation of prevalence using STATA command
Re: Calculation of prevalence using STATA command [message #2055 is a reply to message #318] Fri, 18 April 2014 16:51 Go to previous messageGo to previous message
malayaka is currently offline  malayaka
Messages: 18
Registered: March 2014
Member
Hello,

I am using STATA 11.2 and having difficulty generating the DHS Malawi 2010 domestic violence figures (see attached jpgs) for:

1) Women ages 15-19 who ever experienced sexual violence (%)
2) Women ages 15-19 who ever experienced physical violence since age 15 (%)

Below are the STATA codes I used for "sexual violence (please see attached pdf)." I then plan to crosstab by wealth, residence (urban/rural), and region. I am also at a loss at what to do for "ever experienced physical violence since age 15" -- which variables do I use (or need to combine - similar to "sexual violence") to get "ever experienced physical violence?"

Can someone please help with the correct code to use?

I used the STATA codes below, but am not able to generate the same results (see attached pdf). Guidance to generate both DV figures will be much appreciated.

STATA Code:

use v005 v012 v013 v021 v022 v023 v024 v025 v044 v101 v102 v106 v149 v155
v190 v201 v212 v313 v384a v384b v384c v463z v501 v502 v511 v536 v613 v714
v717 v731 v739 v763a d005 d108 d124 d125 using "/Users/Desktop/MWIR61FL.DTA


******************************
* DOMESTIC VIOLENCE (SEXUAL)
******************************
generate dweight = d005/1000000
svyset [iweight=dweight], psu(v021) strata(v023)

* Generate new variable (anysv = any sexual violence)
generate anysv=.
replace anysv=0 if d108==0|d124==0|d125==0
replace anysv=1 if d108==1|d124==1|d125==1

* Age group (15-19 yrs) and experience of sexual violence
svy: tabulate v013 anysv, row

* Age group (15-19 yrs) and experience of sexual violence
svy: tabulate anysv v190 if v013==1

* By age group (15-19 yrs), experience of sexual violence and place of
residence (urban/rural)
svy: tabulate anysv v102 if v013==1

* By age group (15-19 yrs), experience of sexual violence and region
(North, Central, South)
svy: tabulate anysv v101 if v013==1

Thank you in advance.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Selection for domestic violence module V044
Next Topic: DHS Malawi - domestic violence among women 15-19
Goto Forum:
  


Current Time: Mon Nov 25 20:06:28 Coordinated Universal Time 2024