I would like to include a mediation into my discrete-time hazard model. However, i also have repeated events. My data is a 3 wave panel data set. I am using Stata 14.
My moderator is a binary variable, my independent variables are binary, categorical as well as continuous.
Going into the literature, I have so far understood that I can use Stata's SEM approach to model a mediation and that I can include survival time as my dependent variable. I am not sure, however, how to include the repeated events. I was thinking of including first and second event (there are hardly more than two) as level 2 variables?
Do you think this approach is feasible in Stata?
My moderator is a binary variable, my independent variables are binary, categorical as well as continuous.
Going into the literature, I have so far understood that I can use Stata's SEM approach to model a mediation and that I can include survival time as my dependent variable. I am not sure, however, how to include the repeated events. I was thinking of including first and second event (there are hardly more than two) as level 2 variables?
Do you think this approach is feasible in Stata?
Comment