#' @export
kaplan_meier_plot <- function(times, delta) {
non_para <- non_parametric_estimates(times, delta, continuous = TRUE)
plot(non_para$times_sequence, non_para$kaplan_meiers, typ='s', xlab="Time", ylab="Kaplan-Meier estimated survival probability")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.