Learn R Programming

rpsftm (version 1.2.9)

cox.zph: Test the proportional hazards assumption of an RPSFTM/Cox Regression

Description

If the the fit inherits *both* rpsftm and coxph then this pulls out the genuine survival::coxph object that is deeply nested in the object, and then runs survival::cox.zph on it. Or it avoids overwriting the function from survival by calling survival::cox.zph directly if the object does not inherit rpsftm. Or it fails.

Usage

cox.zph(fit, ...)

Arguments

fit

the result of fitting a rpsftm model using coxph as the inner estimation tool.

...

any other arguments to pass to cox.zph.

See Also