Matching the Kenya 2014 DHS domestic violence data [message #11175] |
Tue, 15 November 2016 05:23 |
npolle
Messages: 6 Registered: August 2016 Location: MOMBASA, KENYA
|
Member |
|
|
I am using the 2014 Kenya Demographic and Health Survey to determine domestic violence and associated risk factors. I am trying to match the domestic violence numbers in table Tables 16.1.1 of the final report. However I keep getting a total of 4018 women instead of 5,657. Kindly assist. Below are the stata codes that I used. Thank you.
*OPEN FILE
use "G:\scientific writing\VIOLENCE\KE_2014_DHS_11142016_37_61056\keir70dt\KEIR 70FL.DTA ", clear
* GENERATING THE VARIABLE 'sexualviolence'
generate sexualviolence=.
replace sexualviolence = 0 if d105h == 0| d105h == 9 | d105i == 0| d105i == 9 ///
| d105k == 0 | d105k == 9
replace sexualviolence = 1 if d105h == 1 | d105i == 1 | d105k == 1
replace sexualviolence = 1 if d105h == 2 | d105i == 2 | d105k == 2
replace sexualviolence = 1 if d105h == 3 | d105i == 3 | d105k == 3
replace sexualviolence = 1 if d105h == 4 | d105i == 4 | d105k == 4
label variable sexualviolence "EVER EXPERIENCED SEXUAL VIOLENCE"
label define sexual_violence 0 "Never" 1 "Often" 2 "Sometimes" ///
3 "Yes, but not in the last 12 months" 4 "Yes, but frequency in last 12 months missing"
label value sexual_violence sexualviolence
tab sexualviolence [iweight=d005/1000000]
*GENERATE VARIABLE "physicalviolence"
generate physicalviolence=.
replace physicalviolence = 0 if d105a - d105f == 0 | d105j == 0
replace physicalviolence = 1 if d105a - d105f == 1 | d105j == 1
replace physicalviolence = 2 if d105a - d105f == 2 | d105j == 2
replace physicalviolence = 3 if d105a - d105f == 3 | d105j == 3
replace physicalviolence = 4 if d105a - d105f == 4 | d105j == 4
label variable physicalviolence "EVER EXPERIENCED PHYSICAL VIOLENCE"
label define physical_violence 0 "Never" 1 "Often" 2 "Sometimes" ///
3 "Yes, but not in the last 12 months" 4 "Yes, but frequency in last 12 months missing"
label value physical_violence physicalviolence
tab physicalviolence [iweight=d005/1000000]
|
|
|