Hello there,
I will soon be writing my master's thesis in political science. As a method I will use a cox regression. In contrast to a logistic regression, the variable time can be included much better with a cox regression.
One can determine not only if, but also when an event (e.g., party exit or government collapse) occurs.
Recently I read about Cox ED - expeted durations.
Instead of a somewhat cryptic hazard ratio/rate, this gives a time value that expresses how many days/months earlier or later that variable caused the event to occur or be delayed. (more info: https://doi.org/10.1017/S000712341700045X)
Super useful - I definitely want to use this!
Problem: The inventors have written down the necessary steps only in R so far. I don't know R, but I know Stata quite well.
Is it basically possible to rebuild Cox ED in Stata?
The R package as well as the corresponding description can be found here: https://github.com/jkropko/coxed.
If there is already a similar forum post, feel free to link it to me.
Kind regards
I will soon be writing my master's thesis in political science. As a method I will use a cox regression. In contrast to a logistic regression, the variable time can be included much better with a cox regression.
One can determine not only if, but also when an event (e.g., party exit or government collapse) occurs.
Recently I read about Cox ED - expeted durations.
Instead of a somewhat cryptic hazard ratio/rate, this gives a time value that expresses how many days/months earlier or later that variable caused the event to occur or be delayed. (more info: https://doi.org/10.1017/S000712341700045X)
Super useful - I definitely want to use this!
Problem: The inventors have written down the necessary steps only in R so far. I don't know R, but I know Stata quite well.
Is it basically possible to rebuild Cox ED in Stata?
The R package as well as the corresponding description can be found here: https://github.com/jkropko/coxed.
If there is already a similar forum post, feel free to link it to me.
Kind regards
Comment