Dear Statalists,
I wish to expand an event history longitudinal data to accommodate months. The data is already in years of event occurrence for each identity. It runs for a few years (1980-1992) and has been collected in waves 1-12. I could easily change the waves to years of occurrence but i desire to expand it and specify it as monthly survival data. I would then tie the event occurrence to random months within the year of occurrence or say the nth month of the year. Basically, it might turn out to look like a continuous flow of event occurrence instead of having a discrete event time in just years of occurrence.
I have used the following code:
bysort pid wave: gen month = dofm(wave)
format month %tm
stset month, id(pid) failure(FTowner)
stsplit, at(failure)
I am sure i have not done enough to carry out the intended task. Please help!
I wish to expand an event history longitudinal data to accommodate months. The data is already in years of event occurrence for each identity. It runs for a few years (1980-1992) and has been collected in waves 1-12. I could easily change the waves to years of occurrence but i desire to expand it and specify it as monthly survival data. I would then tie the event occurrence to random months within the year of occurrence or say the nth month of the year. Basically, it might turn out to look like a continuous flow of event occurrence instead of having a discrete event time in just years of occurrence.
I have used the following code:
bysort pid wave: gen month = dofm(wave)
format month %tm
stset month, id(pid) failure(FTowner)
stsplit, at(failure)
I am sure i have not done enough to carry out the intended task. Please help!
Comment