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 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
Previous Topic: COMPARING SIGNIFICANCE ACROSS SURVERY
Next Topic: Health Insurance Data.
Goto Forum:
  


Current Time: Tue Jan 23 00:34:36 Eastern Standard Time 2018