Tis is a ggplot version of plot.cox.zph. Displays a graph of the scaled Schoenfeld residuals, along with a smooth curve.
Arguments
- x
result of the cox.zph function.
- resid
a logical value, if TRUE the residuals are included on the plot, as well as the smooth fit.
- se
a logical value, if TRUE, confidence bands at two standard errors will be added.
- var
The set of variables for which plots are desired. It can be integer or variable names
- hr
logical If true, plot for hazard ratio, If false, plot for coefficients
- add.lm
logical If true, add linear regression line