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 previous 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.
 
Read Message
Read Message
Read Message
Previous Topic: FGM/C daughter
Next Topic: Orphan non-orphan school attendance ratio
Goto Forum:
  


Current Time: Mon Dec 2 13:28:59 Coordinated Universal Time 2024