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

View source: R/cox.zph.R

cox.zphR Documentation

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.

Note

This does rely on the order of loading packages. The rpsftm package must be loaded after survival, if both are required, to avoid the masking of synonymous functions causing errors.

See Also

cox.zph


rpsftm documentation built on Nov. 2, 2023, 6:07 p.m.