f_flexsurv_plots: Survival Analysis Plotting Function

View source: R/f_flexsurv_plots.R

f_flexsurv_plotsR Documentation

Survival Analysis Plotting Function

Description

This function plots Kaplan-Meier and parametric survival curves.

Arguments

fit

A list of fitted survival models. Default is ls_obj.

show_dists

A character vector specifying which distributions to show. Default is "all".

time_plot

A numeric vector specifying the time points for the plot. Default is 0:6000.

conf_int_km

A logical indicating whether to include confidence intervals for the Kaplan-Meier curve. Default is FALSE.

scale_time

A numeric value to scale time from days to years. Default is 365.25.

Value

A ggplot2 object.

Author(s)

F. Thielen

Examples

f_flexsurv_plots()

fthielen/tatooheen documentation built on Nov. 8, 2023, 4:37 a.m.