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
Normality test for multiple imputationsDear all, I have a data set with multiple imputations performed. I want to perform linear and logis…
GARCH regressions for panels using foreachHi, 1. I want to estimate my risk measures using bi-variate diagonal GARCH (1,1) model (DVECH) for …
Clarke Error Grid Analysis and PlotI was looking for Clarke Error Grid Plot over the internet but couldn't find how to do this in STATA…
Nested loops with macros - using required, r(100)Hi everyone, I have about twenty csv files on which I need to do some estimation after I have obtai…
Why does indicating omitted dummy variables not work?So I run two Probit regressions with different commands, one is with i(2 3 4 5).c_lable and the othe…
Subscribe to:
Post Comments (Atom)
0 Response to Stset with durations
Post a Comment