I have a dataset, where each person is followed from unemployment until employment, where outcome is the time untill employment measurd in months. My upper limit is 24 months. I have persons who is right-censored due to move, die, maternity leave etc, they have time until they ''fall out''.
How do i get the predicted duration for each person after running a stcox regression?
I wanna calculate the difference between the actual and predicted duration for each person, where the predicted duration is estimated by the model where i control for other things (age, sex etc)
Can somebody help me?
Related Posts with calculate predicted duration after stcox
Change last 4 digits in String type How can I change last 4 digits of co_end_variable to finyear ? For the data below, for example, 01…
In a loop, strtrim() won't work in some of my variablesHello everyone! I'm facing a little difficulty using the strtrim() command here. As always, I looked…
How to create a variable representing the max length of consecutively same numbers in a row?I am trying to find a way to caculate the max length of consectively same numbers in each row . For …
How can I multiply two category variables by another category variable to create a new variable? Hi All, I want to create a new variable which is (Age * Education levels). But the problem is that…
Mismathing data when summarizing a variableWhen I try to summarize data the information that the functio returns to me doesn't match with what …
Subscribe to:
Post Comments (Atom)
0 Response to calculate predicted duration after stcox
Post a Comment