Domestic violence [message #12725] |
Tue, 04 July 2017 06:00 ![Go to next message Go to next message](/theme/default/images/down.png) |
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 #16750 is a reply to message #12726] |
Wed, 27 February 2019 03:35 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
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.
|
|
|