Re: RWANDA 2014-2015 Domestic Violence Tables [message #15444 is a reply to message #15439] |
Mon, 23 July 2018 05:41 |
j.cml
Messages: 2 Registered: July 2018 Location: Kigali
|
Member |
|
|
****SOLVED*****
In case its of hep to anyone, variable d117a also needs to be taken into account
gen anyvlc = 0 if v044 == 1
ds d105a-d105f d105j d130a d117a
foreach var in `r(varlist)'{
replace anyvlc = 1 if `var' > 0 & `var' < 5
replace anyvlc = 1 if d115y==0 | d118y==0
}
lab var anyvlc "Percentage who have ever experienced physical violence since age 15 "
lab def yesno 0 "No" 1 "Yes"
lab values anyvlc yesno
svy: tab anyvlc, percent
|
|
|