Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • gsem enter time for event history analysis

    Hello all,

    I am using gsem to investigate simultaneous factors affecting childbirth.
    I am trying to use gsem for a simultaneous event history analysis and my data has retrospective histories for childbirth, employment status, and education level.

    However, it seems like gsem does not have an automatic "enter time" option. How can I deal with event history analysis when using gsem?
    Additionally, I want to use stsplit with gsem as well. Is this even possible?

    I am showing you the code I used for another event history analysis with stset and streg:
    gen dur= childbirthtime1-mombirthtime if child == 1
    replace dur = end-mombirthtime if child==0
    stset dur, failure(child==1) enter(time age15) id(id)
    stsplit edulevel`i', at(0) after(time=edutim`i'-mombirthtime)
    stsplit employmentstatus`i', at(0) after(time=emptim`i'-mombirthtime)
    xi:streg ib1.edu ib1.emp, dist (exponential) nohr

    How can I do something similar to these using gsem?

    Thank you so much for your help in advance!
Working...
X