cox.zph {rpsftm} | R 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 |
... |
any other arguments to pass to |
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
[Package rpsftm version 1.2.9 Index]