Husband/Partner violence last 12 months - Dominican Republic [message #13364] |
Fri, 27 October 2017 12:03 |
dianaortiz84
Messages: 2 Registered: October 2017
|
Member |
|
|
Hi, I've been trying to replicate the 12 months physical or sexual violence estimates for Dominican Republic, using stata, but I've been unable to do it. I need to make some cross tabulations mixing region, wealth quintile and education variables.
I tried re-coding the variables d105a-d105k (excluding d105g) I made 3 = 0 and 4 2 = 1. And then I tried recreating d106, d107 and d108.
Physical violence gives me 14.87% but the statcompiler shows 15.1%, sexual violence gives me 4.23% but the webpage shows 4.4%. Could anyone help me? Thank you.
foreach x in a b c d e f h i j k {
recode d105`x'(3 = 0) (4 2 = 1), g(d105`x'_re)
}
g d106_x=d105a_re
foreach x in b c j{
replace d106_x=1 if d105`x'_re==1
}
g d107_x=d105d_re
foreach x in e f {
replace d107_x=1 if d105`x'_re==1
}
g d108_x=d105h_re
foreach x in i k {
replace d108_x=1 if d105`x'_re==1
}
|
|
|