0
$\begingroup$

I'm running a cox model:

coxtest<-coxph(Surv(time=Age_Sample,time2=Age_event,event=LungCancer)~Cigarettes_Lifetime,data=mydata)

Then I do

plot(residuals(coxtest,type="martingale"))

And I obtain this weird plot: Weird Martingale Residuals

Is that normal to have this shape? Or I have somthing wrong in my data? When I look on some internet examples, they all have a "scatterplot" and not just 2 lines of points.

Thanks in advance Karine

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.