Skip to contents

Prepares time-to-event data for Kaplan-Meier analysis of adverse events.

Usage

calculate_ae_tte_data(adsl, adae, soc, trt_var = "TRT01P")

Arguments

adsl

ADSL data frame

adae

ADAE data frame

soc

SOC value to filter by

trt_var

Treatment variable name

Value

Data frame formatted for KM plotting

Examples

if (FALSE) { # \dontrun{
# Calculate TTE data for a specific SOC
tte_data <- calculate_ae_tte_data(
  adsl = adsl,
  adae = adae,
  soc = "Gastrointestinal disorders"
)
head(tte_data)
} # }