ph_diagplot_lch | R Documentation |
This plot is also known as log negative log survival rate.
ph_diagplot_lch(
km_fit,
time_scale,
log_time = TRUE,
endpoint_name = "",
subtitle = "",
exclude_censor = TRUE
)
km_fit |
returned object from |
time_scale |
a character string, 'years', 'months', 'weeks' or 'days', time unit of median survival time |
log_time |
logical, TRUE (default) or FALSE |
endpoint_name |
a character string, name of the endpoint |
subtitle |
a character string, subtitle of the plot |
exclude_censor |
logical, should censored data point be plotted |
a diagnosis plot for proportional hazard assumption, versus log-time (default) or time
a plot of log cumulative hazard rate
library(survival)
data(adtte_sat)
data(pseudo_ipd_sat)
combined_data <- rbind(adtte_sat[, c("TIME", "EVENT", "ARM")], pseudo_ipd_sat)
kmobj <- survfit(Surv(TIME, EVENT) ~ ARM, combined_data, conf.type = "log-log")
ph_diagplot_lch(kmobj,
time_scale = "month", log_time = TRUE,
endpoint_name = "OS", subtitle = "(Before Matching)"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.