Maziar Mohaddes
2013-Jan-24 13:17 UTC
[R] Royston Parmar adjusted survival curves using flexsurv
Dear R I am trying to understand and use the flexible parametric survival model suggested by Royston and Parmar. However I am stuck trying to plot the adjusted survival curves for different covariates in the following code: library(flexsurv) library(graphics) spl <- flexsurvspline(Surv(futime, fustat) ~ rx+ecog.ps+resid.ds+age, data = ovarian, k=2, scale="odds") spl the code "plot(spl)" produces a red spline which is difficult for me to interpret. I would like to plot survival based on for example age or rx. Thanks in advance for your help in this matter Best Regards Maziar Mohaddes MD, PhD student Department of Orthopaedics Sahlgrenska University Hospital SE-431 80 Mölndal, Sweden [[alternative HTML version deleted]]