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
Problem with png2rtfHi all, I am using png2rtf module to add a graph file to a word file. All its ok but I have a probl…
Markstat and PDF: Change the width of stata outputHi everyone, I am using markstat to make a pdf document. However, one of the stata results appeared…
Dividing panel by quartilesHello everyone, I am dividing my panel data into 4 quartiles by country's GDP and year. A country m…
Interaction term and fixed effectHello, I'm somewhat puzzled that stata is able to estimate an interaction term of a variable that d…
exprot regression table to word or excelHi all, i have cretaed a regression table using estout command usning the code below Code: regress …
Subscribe to:
Post Comments (Atom)
0 Response to Stset with durations
Post a Comment