Re: reproductive health / contraception [message #15495 is a reply to message #15494] |
Thu, 02 August 2018 00:04 |
heman39
Messages: 2 Registered: August 2018 Location: MUMBAI
|
Member |
|
|
Hello,
Yes, I have seen DHS calender tutorial. Basically I am focusing on constructing life-table survival analysis by each contraceptive method, and my events of analysis are method failure, discontinuation and switching. So for example if my event of analysis is method failure, I will create a life-table for each contraceptive method, then similarly, life-table (discontinuation) by each contraceptive method and life-table (switching) by each contraceptive method.
I am unable to create a single column for using each contraceptive method for the first time using substr command, as every women will have different position for different contraceptive method. further how to create a single column for switching method.
Initially, I have used the following command:
di length(vcal_1)
*length is 75 chars, so reduce to 75 chars
format %75s vcal_1
gen e1 = substr(vcal_1,1,1)
..................
.................
.................
gen e80 = substr(vcal_1,80,1)
Further, when i am seeing Reason for discontinuation (vcal_2)
br vcal_2
the data have blank spaces, so to how to identify at which point of time does the discontinuation occur because of method failure or any other reason and how to identify duration of contraceptive use before and after delivery of the first child?
Also, what is the duration of discontinuation before and after delivery of the first child?
Am I going in correct direction or not?
HIMANSHU
[Updated on: Thu, 02 August 2018 00:41] Report message to a moderator
|
|
|