The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » domestic violence
Re: domestic violence [message #14826 is a reply to message #14783] Mon, 07 May 2018 18:41 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 803
Registered: January 2013
Senior Member
Did you follow the code I provided? I realized that there is actually 1 case coded missing on d101a that is included in the denominator of all ever married women. If you use the following code:
gen wt=d005/1000000
svyset [pw=wt], psu(v021) strata (v023)
* Recode 1 case of missing to code 9
recode d101a (.=9) if v044==1 & v502!=0
svy: tab v013 d101a if v044==1 & v502!=0, row count

then the result show 3245 cases, exactly as in table 20.8, and the percentages in the first column of table 20.8 agree with the percentages in the yes column below, e.g. .2901 is 29.0 percent.
. svy: tab v013 d101a if v044==1 & v502!=0, row count
(running tabulate on estimation sample)

Number of strata   =        38                  Number of obs     =      3,499
Number of PSUs     =       611                  Population size   = 3,244.8879
                                                Design df         =        573

------------------------------------------------------------
age in    | husband/partner jealous if respondent talks with
5-year    |                    other men                    
groups    |       no       yes  don't kn         9     Total
----------+-------------------------------------------------
    15-19 |    76.77     31.38         0         0     108.2
          |    .7099     .2901         0         0         1
          | 
    20-24 |    324.9     135.4     .6549         0       461
          |    .7048     .2938     .0014         0         1
          | 
    25-29 |      461     116.1         0         0     577.1
          |    .7988     .2012         0         0         1
          | 
    30-34 |    551.6       173     1.057     .6452     726.3
          |    .7595     .2381     .0015   8.9e-04         1
          | 
    35-39 |    328.5     103.2     2.856         0     434.5
          |    .7559     .2376     .0066         0         1
          | 
    40-44 |    398.2     109.9     1.144         0     509.3
          |     .782     .2157     .0022         0         1
          | 
    45-49 |    352.2     76.09     .2266         0     428.5
          |    .8219     .1776   5.3e-04         0         1
          | 
    Total |     2493       745     5.939     .6452      3245
          |    .7684     .2296     .0018   2.0e-04         1
------------------------------------------------------------
  Key:  weighted count
        row proportion

  Pearson:
    Uncorrected   chi2(18)        =   35.2736
    Design-based  F(13.44, 7701.48)=    1.2424    P = 0.2390

 
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: Mon Nov 25 12:07:45 Coordinated Universal Time 2024