See cox.zph function in the survival package
cox.zph(fit, transform = "km", global = TRUE, ...)
the result of fitting a Cox regression model, using the
coxph
or coxme
functions.
a character string specifying how the survival times should be transformed
before the test is performed.
Possible values are "km"
, "rank"
, "identity"
or a
function of one argument.
should a global chi-square test be done, in addition to the per-variable or per-term tests tests.
Additional arguments to cox.zph, for example index
if
fit is a GammaStatList
object