The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » Contraception discontinuation
Re: Contraception discontinuation [message #9472 is a reply to message #9463] Wed, 30 March 2016 13:05 Go to previous messageGo to previous message
ASharma is currently offline  ASharma
Messages: 6
Registered: February 2016
Member
Dear Trevor

Thank you for clarification regarding the birth and treatment of missing variable. For the table 7.10 please find my code

******Calendar data****

forvalues i = 1/80 {
gen e_`i' = substr(vcal_1,`i',1)
gen r_`i' = substr(vcal_2,`i',1)
}
keep caseid v001 v002 v003 v005 v008 v011 v017 v018 v019 v013 v101 v102 v106 v131 v190 v302a v312 v501 v624 e* r*
reshape long e_ r_, i(caseid) j(i)

* Set length of calendar to use

gen callen = v018 + 59

gen begin = v018
gen end = callen

****** Include only the five year period
keep if i >= begin & i <= end

*******Table 7.10
tab r_ e_ [iw=v005/1000000]

Using this I obtain a table which has 4432 total number of discontinuation. In addition this includes methods like Diaphragm and other traditional which I are not there in the final table and not sure how these were treated.

For Table 7.10, I did use survival analysis (life tables). However I have not used survival analysis in Stata and thus used SPSS. Please find below the syntax. I would be thankful if you could suggest code for Stata.

SURVIVAL TABLE=i BY status (1)
/INTERVAL=THRU 62 BY 3
/STATUS=e(1)
/PRINT=TABLE
/PLOTS (SURVIVAL)=i BY status
/COMPARE=i BY status
/CALCULATE PAIRWISE.


Thank you

Regards
Anu
 
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: TIMELY & COMPLETION ANTENATAL
Next Topic: weighting adolescent dataset
Goto Forum:
  


Current Time: Tue Jan 14 13:10:48 Coordinated Universal Time 2025