Re: Discrepancies in results [message #24643 is a reply to message #24608] |
Mon, 13 June 2022 11:08 |
Janet-DHS
Messages: 888 Registered: April 2022
|
Senior Member |
|
|
Following is a response from Senior DHS Specialist, Kerry MacQuarrie:
The issue is a very small one. In 2012-13 Pakistan DHS, the "ever experienced emotional violence by spouse" and "ever experienced physical violence by spouse" variables have 1-2 cases that are coded as 9 (declined to answer). See below:
In the DHS construction of the variable, these cases are included in the denominator, but not the numerator. In your code, these cases are excluded from both the numerator and denominator (set to missing). If you recode them as "no" (ie, include them in the denominator), the results match those in the DHS final report tables. The following code does exactly that and works for both survey years:
*emotional violence
recode d104 (9=0),g(ev)
*physical violence
gen pv=d106
replace pv=1 if d107==1
recode pv(9=0)
The discrepancy you are getting in the 2017-18 survey results is a matter of the difference in the way Stata versus the program DHS uses to run Final Report tabulations handles rounding, e.g. 21.25 will get rounded down to 21.2 instead of rounded up to 21.3.
|
|
|