The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » Indicators of Physical and Emotional Violence
Re: Indicators of Physical and Emotional Violence [message #1479 is a reply to message #1478] Tue, 04 March 2014 13:30 Go to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
Dear User
The table you refer to uses two table definitions. One is a working table, the other is the actual table.
Please look through everything and let me know if you still have questions. I have including some code near the bottom which may also help.

crosstab float(1) dvwt1 v013w+v130w+v131w+v501w2+v741w3+v102w+v101w+v106w+v106w3+v19 0w+tot1549 imarr*coldvwt1
exclude(rowzero,colzero,percents,totals,specval)
title( "WORKING TABLE Background characteristics of respondents for the DV module"," ",
"Percent distribution of women who completed the domestic violence module by selected background",
"characteristics, Uganda 2011" )
stub( "Background characteristic" );

crosstab float(1) DV01 v013w11+v130w+v131w+v102w+v101w+v501w2+v218w+v741w3+v106w+v1 06w3+v190w+tot1549 coldv01a+coldv01b+numwom
exclude(totals,specval,rowzero,colzero,percents)
title( "Table DV.1 Experience of physical violence","",
"Percentage of women age 15-49 who have ever experienced physical violence since age 15 and",
"percentage who have experienced violence during the 12 months preceding the survey, by ",
"background characteristics, Uganda 2011" )
stub( "Background characteristic" );



Row Variables for working table:
V013w Current age
V130W Religion
V131W Ethnicity
V501w2 Marital status
V741w3 Employment
V102W Residence
V101w Region
v106w Education
v106w3 Education
v190w Wealth quintile
tot1549 Total variable

Column Variables
imarr*coldvwt1
imarr differentiates between all women and eve married women sample
1 women
2 ever married
coldwt1 Number of women
1 weighted percent
2 weighted number
3 unweighted number

Row Variables for the table
v013w11 Current age
V130W Religion
V131W Ethnicity
v102w Residence
v101w Region
V501w2 Marital status
v218w Number of living children
V741w3 Employment
v106w Education
v106w3 Education
v190w Wealth quintile
tot1549 Total variable

Column variables
coldv01a holds the percentage who have ever experienced physical violence since age 15
coldv01b
1 Often
2 Sometimes
3 Often or sometimes
numbwom holds the number of women

Here's some code which may be useful:
You should be able to find all of these variables with the materials you downloaded when you downloaded the data.
Below are the variables used in the code.

D105A Ever been pushed, shook or had something thrown by husband/partner
D105B Ever been slapped by husband/partner
D105C Ever been punched with fist or hit by something harmful by husband/partner
D105D Ever been kicked or dragged by husband/partner
D105E Ever been strangled or burnt by husband/partner
.....
.....
.....
.....
D105J Ever had arm twisted or hair pulled by husband/partner
D117A Frequency of being hit in last 12 months by other than husband/partner


{ ------ table DVWT.1 -------- }
{ for all women }
imarr = 1;
coldvwt1 = 2;
xtab( dvwt1, rweight );
coldvwt1 = 3;
xtab( dvwt1 );
{ for ever married women }
if V501 <> 0 then
imarr = 2;
coldvwt1 = 2;
xtab( dvwt1, rweight );
coldvwt1 = 3;
xtab( dvwt1 );
endif;

{ ----------- Table DV.1 ------------ }
coldv01a = notappl;
coldv01b = notappl;
numwom = 1;
{ denominator: all women }
xtab( DV01, rweight );
numwom = notappl;
if PVever = 1 then { Ever experience physical violence since age 15 }
coldv01a = 1;
xtab( DV01, rweight );
coldv01a = notappl;
{ violence in last 12 months }
if D105A = 1 | D105B = 1 | D105C = 1 | D105D = 1 |
D105E = 1 | D105F = 1 {| D105G = 1 = NA } | D105J = 1 | D117A = 1 then
coldv01b = 1; { Often }
elseif D105A = 2 | D105B = 2 | D105C = 2 | D105D = 2 |
D105E = 2 | D105F = 2 {| D105G = 2 = NA } | D105J = 2 | D117A = 2 then
coldv01b = 2; { Sometimes }
endif;
xtab( DV01, rweight );
if coldv01b in 1,2 then
coldv01b = 3; { Any last 12m }
xtab( DV01, rweight );
endif;
endif; { physical violence ever }
numwom = 1;

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Difficulty reproducing DV prevalence results
Next Topic: Indicator of sexual violence and child marriage
Goto Forum:
  


Current Time: Wed May 8 04:00:36 Coordinated Universal Time 2024