The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » RWANDA 2014-2015 Domestic Violence Tables
Re: RWANDA 2014-2015 Domestic Violence Tables [message #15444 is a reply to message #15439] Mon, 23 July 2018 05:41 Go to previous message
j.cml is currently offline  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

 
Read Message
Read Message
Previous Topic: domestic violence
Next Topic: Multilevel Weights
Goto Forum:
  


Current Time: Tue Sep 17 07:17:00 Eastern Daylight Time 2019