Survival Analysis with Subject-Specific (Case Weights) and Time-Dependent Weighting
Add legends to KM plot
Add median annotation to KM plot
Add risk table annotation to KM plot
Calculate risk set and event counts at time points
Check KM curve for validity
Check and Compare Statistical Test Results
Confidence interval for Cox model estimate
Weighted counting process
Resampling for Weighted Cox Model (rho, gamma)
Weighted Cox Model with Rho-Gamma Weights
Cox score with rho-gamma weights
Create Baseline Characteristics Table by Treatment Arm
Cumulative RMST bands for survival curves
Weighted and Stratified Survival Analysis
Extract and calculate weights for multiple schemes
Extract time, event, and weight data for a group
Root-finding for Cox score function
Format p-value for display
Get censoring and event times and their indices
Get df_counting results
Event and Risk Matrices for Survival Analysis
Get risk set counts at specified risk points
Get validated weights for a data frame
Get weights for a weighting scheme
Kaplan-Meier Difference Between Groups
Kaplan-Meier Survival Estimates and Variance
Plot Weighted Kaplan-Meier Curves for Two Samples (Counting Process Fo...
Table of KM quantiles for two groups
Kaplan-Meier quantile and confidence interval
Kaplan-Meier quantile calculation
Weighted event count for Cox model
Plot confidence interval polygon for KM curve
Plot KM curves for two groups with optional confidence intervals and c...
Plot Kaplan-Meier curves
Plot weight schemes for survival analysis
Plot weighted Kaplan-Meier curves
Plot Kaplan-Meier Survival Difference Curves with Subgroups and Confid...
Resampling Survival Curves for Confidence Bands
Weighted risk set
Safe execution wrapper
Score calculation for weighted Cox model
Validate required columns in a data frame
Validate weighting scheme parameters
Weighted Survival Analysis Tools
Weighted log-rank cumulative statistics
Weighted Log-Rank and Difference Estimate at a Specified Time
Compute Time-Dependent Weights for Survival Analysis
Provides survival analysis functions with support for time-dependent and subject-specific (e.g., propensity score) weighting. Implements weighted estimation for Cox models, Kaplan-Meier survival curves, and treatment differences with point-wise and simultaneous confidence bands. Includes restricted mean survival time (RMST) comparisons evaluated across all potential truncation times with both point-wise and simultaneous confidence bands. See Cole, S. R. & Hernán, M. A. (2004) <doi:10.1016/j.cmpb.2003.10.004> for methodological background.
Useful links