The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » domestic violence
Re: domestic violence [message #14778 is a reply to message #14772] Fri, 04 May 2018 18:06 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 789
Registered: January 2013
Senior Member
You are requesting column percentages (col) instead of row percentages (row), and your are asking for unweighted numbers of cases (obs) instead of weighted (count).
Also the svyset should use wt instead of d005 for the weight.
I also added in the selection of v502!=0 to exclude never married women, although that isn't strictly necessary as they drop out anyway.
Try the following:
gen wt=d005/1000000
svyset [pw=wt], psu(v021) strata (v023)
svy: tab v013 d101a if v044==1 & v502!=0, row count


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Female genital cutting
Next Topic: RWANDA 2014-2015 Domestic Violence Tables
Goto Forum:
  


Current Time: Thu Apr 25 17:32:17 Coordinated Universal Time 2024