Home » Topics » Domestic Violence » Cannot replicate IPV ever for India DHS 2005-06
Re: Cannot replicate IPV ever for India DHS 2005-06 [message #12014 is a reply to message #12012] |
Mon, 20 March 2017 10:16 |
dgodha
Messages: 44 Registered: November 2016 Location: India
|
Member |
|
|
Hello Kerry,
I appreciate your looking into the matter further.
You were right about the dataset. Apparently I had the earlier file- IAIR50FL. So, I re-downloaded the latest one.
But coming to the second part, there is no difference between our commands (they are asking the software to do the same thing) or the output. And I ran both on the IAIR52FL file and I am still getting the same answers- so back to square one. Our population sizes (for "Any violence": physical or sexual or emotional) match with that in the report-4643 but the percentage comes out exactly 33.72. Does this mean 33.72% for "Any violence" is correct?
Your command:
use "IAIR52FL.dta", clear
/*Generating weights*/
gen dwt=d005/1000000
svyset [pw=dwt], psu(s021) strata(v025)
*Recode 9's
recode d104(9=0),g(d104_r)
recode d106(9=0),g(d106_r)
recode d107(9=0),g(d107_r)
recode d108(9=0),g(d108_r)
*Physical violence
g PV=d106_r
replace PV=1 if d107_r==1
*Physical or sexual violence
g PVSV=PV
replace PVSV=1 if d108_r==1
*Any intimate partner violence
g ipv=PVSV
replace ipv=1 if d104_r==1
svy :tab ipv if v013==1 & v501>=1 & v501<=5 & v044==1
My command:
use "IAIR52FL.dta", clear
/*Generating weights*/
gen dwt=d005/1000000
svyset [pw=dwt], psu(s021) strata(v025)
*Recode 9's
recode d104(9=0),g(d104_r)
recode d106(9=0),g(d106_r)
recode d107(9=0),g(d107_r)
recode d108(9=0),g(d108_r)
egen ipv1=rsum (d104_r d106_r d107_r d108_r)
tab ipv1
gen violence=0 if ipv1==0
replace violence=1 if ipv1>0 & ipv1~=.
svy :tab violence if v013==1 & v501>=1 & v501<=5 & v044==1
Thanks in advance
DG
Deepali
[Updated on: Mon, 20 March 2017 10:18] Report message to a moderator
|
|
|
|
|
Cannot replicate IPV ever for India DHS 2005-06
By: dgodha on Tue, 07 March 2017 10:51
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: Liz-DHS on Fri, 10 March 2017 10:13
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: dgodha on Fri, 17 March 2017 13:43
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: dgodha on Mon, 20 March 2017 10:16
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: dgodha on Tue, 21 March 2017 01:47
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: dgodha on Wed, 22 March 2017 01:36
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: dgodha on Wed, 22 March 2017 07:45
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: yemsokha on Thu, 01 November 2018 17:09
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: Liz-DHS on Fri, 02 November 2018 09:29
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: yemsokha on Fri, 02 November 2018 11:22
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: Liz-DHS on Fri, 09 November 2018 14:38
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
|
|
|
Re: Cannot replicate IPV ever for India DHS 2005-06
By: Liz-DHS on Fri, 22 November 2019 14:13
|
Goto Forum:
Current Time: Tue Nov 26 07:06:44 Coordinated Universal Time 2024
|