Análise de Sobrevivência em R
Heidi Seibold
Statistician at LMU Munich
Ferramentas de visualização costumam focar em funções em degraus.
Então, o código a seguir NÃO funciona:
wb <- survreg(Surv(time, cens) ~ 1)
ggsurvplot(wb)

wb <- survreg(Surv(time, cens) ~ 1)
Curva de sobrevivência:
surv <- seq(.99, .01, by = -.01) t <- predict(wb, type = "quantile", p = 1 - surv, newdata = data.frame(1))surv_wb <- data.frame(time = t, surv = surv, upper = NA, lower = NA, std.err = NA)
Gráfico:
ggsurvplot_df(fit = surv_wb, surv.geom = geom_line)

Análise de Sobrevivência em R