The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » Domestic violence
Domestic violence [message #12725] Tue, 04 July 2017 06:00 Go to next message
Josephine is currently offline  Josephine
Messages: 9
Registered: December 2016
Location: Sweden
Member
I am using the 2014 KDHS and would like to replicate table 16.1.1 of the DHS report on Experience of physical violence:women.
For example if I replicate physical violence by residence, I do not get the same figures as the those in the table.
Also the total Number of women column in the table tallys (2250-Urban and 3406-Rural) only when I include those who were never married. However,the variables d105a,b,c,d,e,f,and j for these group of women are all missing. Is there something I am missing?
This are the codes I am using:

gen wght = d005/1000000

gen physicalviolence = .
foreach dvar of var d105a d105b d105c d105d d105e d105f d105j {
replace physicalviolence = 1 if `dvar' != 0 & `dvar' != .
}

foreach dvar of var d105a d105b d105c d105d d105e d105f d105j {
replace physicalviolence = 0 if physicalviolence==.
}

bys v025:tab physicalviolence [iweight=wght]

Any assistance is highly appreciated.
Re: Domestic violence [message #12726 is a reply to message #12725] Tue, 04 July 2017 07:52 Go to previous messageGo to next message
Josephine is currently offline  Josephine
Messages: 9
Registered: December 2016
Location: Sweden
Member
Hey,
I have managed to resolve the figures and I can replicate following a preveious post from one of the users. Thanks
Re: Domestic violence [message #16750 is a reply to message #12726] Wed, 27 February 2019 03:35 Go to previous message
GraceG is currently offline  GraceG
Messages: 3
Registered: February 2019
Member
Hi Josephine, I'm having a similar problem to the one that you had. I'm trying to replicate physical violence by education level with the 2014 KDHS.

What post was helpful to you in resolving your code? Or do you have any code that you would be willing to share?

Thanks so much.
Previous Topic: FGM/C daughter
Next Topic: Orphan non-orphan school attendance ratio
Goto Forum:
  


Current Time: Wed Dec 11 18:33:58 Coordinated Universal Time 2024