IPV InTANZANIA 2022 [message #28532] |
Fri, 26 January 2024 03:28 |
Vincent Odhiambo
Messages: 5 Registered: October 2023
|
Member |
|
|
Hi team
I need to determine the proportion of women who have experienced intimate partner Violence 2022 ( IPV) in Tanzania but i have 3 ( IR ) data sets from the website. these are TZIR82DT , TZIR81FL.DTA and TZIR7BFL.DTA. which of these would best describe my outcome of interest and secondly what is the syntax for error bars with confidence intervals if i were to do some descriptive stats for difference forms of IPV.
Lastly how would i determine a composite variable for different forms of intimate partner Violence( Sexual IPV, Physical IPV emotional IPV and controlling behavior
. Thanks in Advance
[Updated on: Fri, 26 January 2024 04:41] Report message to a moderator
|
|
|
|
|
|
Re: IPV InTANZANIA 2022 [message #30267 is a reply to message #29097] |
Thu, 24 October 2024 15:46 |
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
|
|
|
Re: IPV InTANZANIA 2022 [message #30300 is a reply to message #30267] |
Wed, 30 October 2024 15:33 |
Janet-DHS
Messages: 885 Registered: April 2022
|
Senior Member |
|
|
Following is a response from DHS staff member, Tom Pullum:
The first thing I see is that you are not using weights. The simplest way to include weights would be to replace "tab push", for example, with "tab push [iweight=d005/1000000]". See if that helps... Let us know if you still do not get a match.
|
|
|