Stset with durations.
hello i have wide format data with different dates which i used to create different DURATIONS since the begining of observations.
i am hesitating between 2 setup methods.
To set up stata, i use the time duration until last news DURATION1 and as failure i use the duration until death for those who died DURATION2.
So i do:
stset DURATION1, fail(DURATION2)
I had doubts so i tried another way.
I use DURATION2 but i replace missing values for those who don't die by the value of DURATION1 and i create a dichotomous failure variable
This leads to:
stset DURATION2modified, fail(dead)
The results are different and i am enclined to use the second method. Could anyone give me a feedback?
thank you
Mathieu
Related Posts with Stset with durations
ivpoisson control function (with multiplicative error)Hi: Suppose: clear webuse website ivpoisson cfunction visits ad female (time = phone frfam) How c…
Coefplot for multiple regressionHello and good day, I estimate through a cross-sectional model and I did one by one estimation . I w…
Mediation "constrained" by indirect effctsHey everyone, I want to conduct a mediation effects in my research and my indirect effect say "const…
Vertical lineDear, Do you know if you can signal by vertical line the variables _b_price_ultimo and _b_price_ulti…
Limit calculationIs there any way to code (calculate) limits ( of the kind f(x)=?? as x approaches 0) in Stata? Neede…
Subscribe to:
Post Comments (Atom)
0 Response to Stset with durations
Post a Comment