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
Interpreting outputs from "raschjmle" commandHi! I am doing my research on Rasch analysis for measuring knowledge. I am using Stata-14 to constru…
Merging Two Data SetHello Stata Users, I am trying to combine two different data sets according to the variables "Area" …
Difference in DifferenceHello, I'm trying to do a difference in difference for the data below. The treatment starts after Ja…
Counting number of variables across groupsHi, I have three variables KeyEventDates KeyEventHistory KeyEventDetails that I am splitting into s…
Could I include the survey data of "prefer not to say"?Dear friends, I collect survey data with categorical outcome variables whose outcome includes "prefe…
Subscribe to:
Post Comments (Atom)
0 Response to Stset with durations
Post a Comment