Takes a list of multiply imputed datasets corresponding to a single tipping point parameter and pools the Kaplan-Meier survival curves for a given treatment arm. Uses log(-log) transformation and Rubin's rules for pooling across imputations.
average_km(km_data, arm, conf_level = 0.95)A data frame with the following columns:
Time points of the KM curve.
Pooled survival probability at each time point.
Lower 95% confidence limit of pooled survival.
Upper 95% confidence limit of pooled survival.
Standard error of the pooled log-log transformed estimate.
List of data frames, each containing one multiply imputed dataset for a tipping point.
Each data frame must contain columns AVAL, EVENT, TRT01P, iter, and a tipping point parameter depending on the method.
Character string specifying the treatment arm to pool (must match TRT01P levels).
Numeric. Confidence level for CIs (default = 0.95).