I have noticed that when using the proc phreg in SAS and the coxph in R in the same data, the model should be different in order to get the same results. In proc phreg I model the time with the censor variable (where censor=1 means the patient withdrew from the study) in order to obtain a HR. In R I use the same model but this time censor=1 means the patient experienced the event, in order to obtain the same HR. Is there a difference in the definition of the censor variable or the models are different?

Similar questions and discussions