Learn R Programming

tipse (version 1.2)

plot_km: Plot Pooled Kaplan–Meier Curves from Model-Free Tipping Point Analysis

Description

Visualizes averaged (pooled) Kaplan-Meier survival curves across multiple tipping point parameters, highlighting the tipping point where the upper CL of the hazard ratio crosses 1.

Usage

plot_km(tipse)

Value

A ggplot2 object displaying pooled Kaplan-Meier curves, with:

  • Colored lines - pooled KM curves for each tipping point parameter

  • Red line - tipping point where HR upper CL crosses 1

  • Orange dashed line - original (unimputed) KM curve

Arguments

tipse

An S3 object of class "tipse" returned from tipping_point_model_free() or tipping_point_model_based().