Hello,
I am running a Cox model to examine the effect of a treatment ("treat" - a binary variable) on the risk of death. One of the predictors is a continuous variable (age). However, I do not know how to test if the linearity assumption for age is fulfilled. I have tried doing a search, but without luck. This is my model:
stset t2dth, failure(c4dth==1)
stcox treat age, efron
Thanks a lot in advance.
Bill
I am running a Cox model to examine the effect of a treatment ("treat" - a binary variable) on the risk of death. One of the predictors is a continuous variable (age). However, I do not know how to test if the linearity assumption for age is fulfilled. I have tried doing a search, but without luck. This is my model:
stset t2dth, failure(c4dth==1)
stcox treat age, efron
Thanks a lot in advance.
Bill

Comment