Hello everyone,
Does anyone know if it is possible to get the baseline hazard function (graph) from a stratified Cox PH-model?
I have fit a Cox-model using stcox, but two of the dummy variables are in violation of the proportional hazard assumption. From what I understand, this problem can be solved by stratfying the model based on these two dummy variables. This did in fact solve the PH assumption violation. However, I cannot recover the baseline hazard function anymore using "stcurve", which is the whole point of my study.
Here is the code for my Cox model after having stset my data:
stcox X1 X2 X3 X4 X5 X6 X7, vce(cluster CLUSTERID) nohr strata(X8 X9)
Does anyone know how/if it is possible to get this graph?
Any help is greatly appreciated.
Best regards,
John
Does anyone know if it is possible to get the baseline hazard function (graph) from a stratified Cox PH-model?
I have fit a Cox-model using stcox, but two of the dummy variables are in violation of the proportional hazard assumption. From what I understand, this problem can be solved by stratfying the model based on these two dummy variables. This did in fact solve the PH assumption violation. However, I cannot recover the baseline hazard function anymore using "stcurve", which is the whole point of my study.
Here is the code for my Cox model after having stset my data:
stcox X1 X2 X3 X4 X5 X6 X7, vce(cluster CLUSTERID) nohr strata(X8 X9)
Does anyone know how/if it is possible to get this graph?
Any help is greatly appreciated.
Best regards,
John
Comment