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
analyze the explanation of each X and the interaction of them to YDear Stata members, I have got a revise and resubmit from a journal. One of the referees have sugges…
Generalized Difference-in-DifferencesGood day all of you! I have a Diff-in-Diff model that I need help with. I want to estimate the ave…
quick question about dividing the variable on the previous yearDear researchers, I have quick question, please. While I am reading papers, I have found one use the…
SignificanceI am analyzing the effect of gender on homeownership in the US and I keep finding that my female dum…
asdoc sum - does not allow analytical weightsDear Members, I am dealing with DHS dataset. I have individual sample weight (6 decimals) in my dat…
Subscribe to:
Post Comments (Atom)
0 Response to Stset with durations
Post a Comment