
Proportional-hazards assumption test (Schoenfeld-style)
Source:R/diagnostics.R
ph_assumption_test.RdCorrelates each covariate with rank-transformed event times.
Examples
set.seed(1)
res <- try(ph_assumption_test(rexp(60), rbinom(60, 1, 0.7),
matrix(rnorm(120), ncol = 2)))
if (!inherits(res, "try-error")) str(res, max.level = 1)
#> List of 2
#> $ :List of 5
#> ..- attr(*, "class")= chr [1:2] "morie_specification_test" "list"
#> $ :List of 5
#> ..- attr(*, "class")= chr [1:2] "morie_specification_test" "list"