Martingale residuals.
Examples
set.seed(1)
df <- data.frame(t = rexp(60), e = rbinom(60, 1, 0.7),
x1 = rnorm(60), x2 = rnorm(60))
fit <- morie_survival_cox(df, "t", "e", c("x1", "x2"))
str(morie_survival_martingale(fit), max.level = 1)
#> Named num [1:60] -0.443 -0.194 0.914 0.938 0.725 ...
#> - attr(*, "names")= chr [1:60] "1" "2" "3" "4" ...
