plot_schoenfeld() checks the proportional hazards assumption of a cox_ph() fit by plotting
each coefficient's scaled Schoenfeld residuals against a function of time, one panel per
coefficient. Under proportional hazards the residuals scatter around the coefficient (the dashed
line), and the loess smooth through them is flat. A smooth that trends shows the effect
changing over time. With show_zph = TRUE, each panel also shows the p-value of its term's
cox_zph() test.
Usage
plot_schoenfeld(
fit,
transform = c("identity", "km", "rank", "log"),
show_zph = TRUE,
title = NULL
)
