[R] coxph with smooth survival
Bond, Stephen
Stephen.Bond at cibc.com
Thu Jan 17 15:49:11 CET 2013
Hello users,
I would like to obtain a survival curve from a Cox model that is smooth and does not have zero differences due to no events for those particular days.
I have:
> sum((diff(surv))==0)
[1] 18
So you can see 18 days where the survival curve did not drop due to no events.
Is there a way to ask survfit to fit a nice spline for the survival??
Note: I tried survreg and it did not work, but maybe I did not do it properly??
Thank you very much.
Stephen B
More information about the R-help
mailing list