cox.zph | R Documentation |
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.
cox.zph(fit, ...)
fit |
the result of fitting a rpsftm model using |
... |
any other arguments to pass to |
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.
cox.zph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.