Dear listers
I am running an competing risk regression and want to test my model to see if the proportionality assumptions holds and the goodness-of-fit.
i asked a statistician for help and he sent me good advise saying:
The competing risk models can be tested the same way as the other proportional hazards models. The only difference is that instead of the all-cause hazard, you would be interested in the cause-specific hazards (event of interest, competing event 1, competing event 2,…). You can check the proportionality assumption by making a log-log plot (log-cumulative hazard against log of time) as in the stphplot (which is only defined for cox regression as stata default).
he gave the following code:
but seeng that i use stcrreg and then when i try to
i get an error saying survival option not allowed.
My question: How do i model test for the proportionality assumptions using stcrreg in Stata?
lars
I am running an competing risk regression and want to test my model to see if the proportionality assumptions holds and the goodness-of-fit.
i asked a statistician for help and he sent me good advise saying:
The competing risk models can be tested the same way as the other proportional hazards models. The only difference is that instead of the all-cause hazard, you would be interested in the cause-specific hazards (event of interest, competing event 1, competing event 2,…). You can check the proportionality assumption by making a log-log plot (log-cumulative hazard against log of time) as in the stphplot (which is only defined for cox regression as stata default).
he gave the following code:
Code:
streg gender2, dist(gompertz) predict s, surv gen ls0 = log(-log(s)) if gender2==0 gen ls1 = log(-log(s)) if gender2==1 gen lt0 = log(time) if gender2==0 gen lt1 = log(time) if gender2==1 twoway lowess ls0 lt0 || lowess ls1 lt1
but seeng that i use stcrreg and then when i try to
Code:
predict s, surv
My question: How do i model test for the proportionality assumptions using stcrreg in Stata?
lars
Comment