Today's Messages (on)
| Unanswered Messages (off)
Forum: India
|
Topic: Pregnancy outcomes in India DHS 2019-21
|
Re: Pregnancy outcomes in India DHS 2019-21 [message #29054 is a reply to message #29051] |
Thu, 18 April 2024 05:58 |
anjalibansal6693
Messages: 24 Registered: February 2018
|
Member |
|
|
Thanks for the reply
I was trying to do match 6.15 table for India, but the percentage is matching with the shared code but the sample size is not matching.
The code :
quietly forvalues lcol=1/80 {
gen type_`lcol'=.
replace type_`lcol'=1 if substr(vcal_1,`lcol',1)=="B"
replace type_`lcol'=2 if substr(vcal_1,`lcol',1)=="T"
gen interval_`lcol'= .
replace interval_`lcol'= 0 if substr(vcal_1,`lcol'+1,1)~="P" & `lcol'+1<=80
replace interval_`lcol'= 1 if substr(vcal_1,`lcol'+1,1) =="P" & substr(vcal_1,`lcol'+2,1)~="P" & `lcol'+2<=80
replace interval_`lcol'= 2 if substr(vcal_1,`lcol'+1,2) =="PP" & substr(vcal_1,`lcol'+3,1)~="P" & `lcol'+3<=80
replace interval_`lcol'= 3 if substr(vcal_1,`lcol'+1,3) =="PPP" & substr(vcal_1,`lcol'+4,1)~="P" & `lcol'+4<=80
replace interval_`lcol'= 4 if substr(vcal_1,`lcol'+1,4) =="PPPP" & substr(vcal_1,`lcol'+5,1)~="P" & `lcol'+5<=80
replace interval_`lcol'= 5 if substr(vcal_1,`lcol'+1,5) =="PPPPP" & substr(vcal_1,`lcol'+6,1)~="P" & `lcol'+6<=80
replace interval_`lcol'= 6 if substr(vcal_1,`lcol'+1,6) =="PPPPPP" & substr(vcal_1,`lcol'+7,1)~="P" & `lcol'+7<=80
replace interval_`lcol'= 7 if substr(vcal_1,`lcol'+1,7) =="PPPPPPP" & substr(vcal_1,`lcol'+8,1)~="P" & `lcol'+8<=80
replace interval_`lcol'= 8 if substr(vcal_1,`lcol'+1,8) =="PPPPPPPP" & substr(vcal_1,`lcol'+9,1)~="P" & `lcol'+9<=80
replace interval_`lcol'= 9 if substr(vcal_1,`lcol'+1,9) =="PPPPPPPPP" & substr(vcal_1,`lcol'+10,1)~="P" & `lcol'+10<=80
replace interval_`lcol'=10 if substr(vcal_1,`lcol'+1,10)=="PPPPPPPPPP" & substr(vcal_1,`lcol'+11,1)~="P" & `lcol'+11<=80
replace interval_`lcol'=11 if substr(vcal_1,`lcol'+1,11)=="PPPPPPPPPPP" & substr(vcal_1,`lcol'+12,1)~="P" & `lcol'+12<=80
}
reshape long type_ interval_, i(v001 v002 v003) j(col)
rename *_ *
drop if type==.
label variable type "Type of pregnancy outcome"
label define type 1 "Live birth" 2 "Termination"
label values type type
ta type [iweight=v005/1000000]
|
|
|
Re: Pregnancy outcomes in India DHS 2019-21 [message #29057 is a reply to message #29054] |
Thu, 18 April 2024 07:38 |
anjalibansal6693
Messages: 24 Registered: February 2018
|
Member |
|
|
Dear Sir
Also I have tried the attached code. Please help with the code for Table 6.13 for India DHS , 2019-20 as it is not matching with the report.
Also I have one doubt should we restrict the calendar to only 5 years as in the Table heading of 6.13 is Percentage of women age 15-49 who have ever had a non-live birth and have had a non-live birth in
the 5 years preceding the survey, and percentage of pregnancies (not including current pregnancies) that ended in a non-live birth in the 5 years preceding the survey by current age of mother, India,
2019-21
|
|
|
Re: Pregnancy outcomes in India DHS 2019-21 [message #29058 is a reply to message #29054] |
Thu, 18 April 2024 08:41 |
Bridgette-DHS
Messages: 3034 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS staff member, Tom Pullum:
In August of 2022 I (and others at DHS) put a lot of effort into trying to match table 6.15, but were unsuccessful. The n for this table is much too high. We cannot put any more effort into it. Perhaps you can ask IIPS.
|
|
|
Forum: Weighting data
|
Topic: Reclassifying admin areas
|
Re: Reclassifying admin areas [message #29059 is a reply to message #29053] |
Thu, 18 April 2024 08:57 |
Bridgette-DHS
Messages: 3034 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS staff member, Tom Pullum:
Congratulations on harmonizing the administrative areas. That's a lot of work.
You should not have to change the weights at all. They reflect the sampling fractions for the strata as they were defined at the time of each survey. That is, they are correct for each cluster as it was classified at the time. The change in boundaries would not alter those sampling fractions.
|
|
|
Forum: Dataset use in Stata
|
Topic: Strange Issues w/ Data Formatting from DHS
|
Re: Strange Issues w/ Data Formatting from DHS [message #29060 is a reply to message #29038] |
Thu, 18 April 2024 10:07 |
tednoel
Messages: 2 Registered: April 2024
|
Member |
|
|
Hi, thank you so much for responding. There are now multiple professors from my University across several departments trying to assist with this issue, but the issue is not with respect to unzipping the files- rather the issue is that the .dta files are not being extracted from the files when unzipping. We have attempted to make a loop using the dofile to extract the .dta but every .dta has a different type of file path- this is why we can't run everything at once... It goes without saying that extracting every .dta file for thousands of files would be nearly impossible in the month and a half I have left until my submission deadline. I'm truly beginning to panic because even professors who have worked with DHS data here have been puzzled by this challenge for several weeks now. Any resources or guidance you might be able to provide would be greatly appreciated.. Thank you so much in advance.
|
|
|
Forum: Domestic Violence
|
Topic: Intimate Partner Violence
|
Intimate Partner Violence [message #29061] |
Thu, 18 April 2024 10:26 |
Vincent Odhiambo
Messages: 3 Registered: October 2023
|
Member |
|
|
Good morning. I am interested in coming up with one composite variable from Tanzania demographic and health survey using TZIR82DT 2022 dataset. Kindly help with the set of variables that would describe economic abuse/violence and the syntax. Thank you in advance
|
|
|
Current Time: Thu Apr 18 11:51:16 Coordinated Universal Time 2024
|