The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » IPV InTANZANIA 2022 (proportion of intimate partner violence in Tanzania using 2022 data )
Re: IPV InTANZANIA 2022 [message #30267 is a reply to message #29097] Thu, 24 October 2024 15:46 Go to previous messageGo to previous message
Vincent Odhiambo is currently offline  Vincent Odhiambo
Messages: 5
Registered: October 2023
Member
Good evening i am trying to replicate the prevalence of different forms of IPV violence using Tanzania DHS of 2022 for the past twelve months but im getting difference resulst from what has been published by the DHS, kindly help in checking where i might have gone wrong in my stata commanda
*** physical violence

tab d105a,m
tab d105a, nolab
gen push=.
replace push=0 if d105a==0
replace push=1 if d105a==1 | d105a==2
tab push

tab d105b
tab d105b, nolab
gen slap=.
replace slap =0 if d105b==0
replace slap =1 if d105b==1 |d105a==2
tab slap

tab d105c
tab d105c, nolab
gen punch=.
replace punch=0 if d105c==0
replace punch =1 if d105c==1 | d105c==2
tab punch

tab d105d
tab d105d, nolab
gen kick=.
replace kick =0 if d105d==0
replace kick =1 if d105d==1 | d105d==2
tab kick

tab d105e
tab d105e , nolab
gen burn=.
replace burn=0 if d105e==0
replace burn =1 if d105e==1 | d105e==2
tab burn

tab d105f,
tab d105f, nolab
gen knife=.
replace knife =0 if d105f==0
replace knife =1 if d105f==1 | d105f==2
tab knife

tab d105j
tab d105j, nolab
gen twist=.
replace twist =0 if d105j==0
replace twist =1 if d105j==1 | d105j==2
tab twist

br push slap punch kick burn knife twist

tab1 push slap punch kick burn knife twist

egen physical_ipv= rowmax(push slap punch kick burn knife twist)

tab physical_ipv

tab physical_ipv if marital_stat==1
**physical ipv prevalence 12.57%

*Sexual violence variables

tab d105h
tab d105h, nolab
gen unwanted =.
replace unwanted =0 if d105h==0
replace unwanted =1 if d105h==1|d105h==2
tab unwanted

tab d105i
tab d105i, nolab
gen sexact=.
replace sexact=0 if d105i==0
replace sexact =1 if d105i==1|d105i==2
tab sexact

tab d105k
tab d105k , nolab
gen forcesex=.
replace forcesex=0 if d105k==0
replace forcesex =1 if d105k==1|d105k==2
tab forcesex

br unwanted sexact forcesex

egen sexual_ipv= rowmax(unwanted sexact forcesex)

tab sexual_ipv
** sexual ipv prevalence 6.68%

*Emotional violence variables

tab d103a
tab d103a, nolab
gen humiliate=.
replace humiliate=0 if d103a==0
replace humiliate =1 if d103a==1|d103a==2
tab humiliate


tab d103b
tab d103b, nolab
gen threat=.
replace threat=0 if d103a==0
replace threat =1 if d103a==1|d103a==2
tab threat


tab d103c
tab d103c, nolab
gen insult=.
replace insult =0 if d103c==0
replace insult =1 if d103c==1|d103c==2
tab insult

br humiliate threat insult

egen emotion_ipv= rowmax(humiliate threat insult)

tab emotion_ipv
recode emotion_ipv (0/0=0 "no")(1/1=1 "yes"), gen (emotional_ipv)
tab emotional_ipv if marital_stat==1

** emotional prevalence was

**composite ipv variable

egen past_year_ipv_prevalence= rowmax(physical_ipv sexual_ipv emotion_ipv)

tab past_year_ipv_prevalence
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Comparing DHS6 and DHS7 district wise data
Next Topic: Variables used to define marital status?
Goto Forum:
  


Current Time: Thu Jan 30 18:26:57 Coordinated Universal Time 2025