Learn R Programming

reconstructKM (version 0.4.0)

Reconstruct Individual-Level Data from Published KM Plots

Description

Functions for reconstructing individual-level data (time, status, arm) from Kaplan-MEIER curves published in academic journals (e.g. NEJM, JCO, JAMA). The individual-level data can be used for re-analysis, meta-analysis, methodology development, etc. This package was used to generate the data for commentary such as Sun, Rich, & Wei (2018) . Please see the vignette for a quickstart guide.

Copy Link

Version

Install

install.packages('reconstructKM')

Monthly Downloads

233

Version

0.4.0

License

GPL-3

Maintainer

Ryan Sun

Last Published

December 3rd, 2025

Functions in reconstructKM (0.4.0)

weibull_rmst

RMST using Weibull fit
weimle1

Fit Weibull distribution parameters using MLE
KM_reconstruct

Reconstruct digitized Kaplan-Meier curves and generate invididual patient data
integrate_survdat

Integrate area under curve for single arm
nonparam_rmst

Calculate RMST for each arm as well as contrast
format_raw_tabs

Format raw survival and NAR tables so they are ready for reconstruction algorithm
pbo_NAR

Pembrolizumab example OS NAR table - placebo arm
CIC_reconstruct

Reconstruct cumulative incidence curves
add_clicks

Add clicks to subdistribution curves for reconstructing CIC
print_cox_outputs

Print outputs from Cox regression
remove_clicks

Remove clicks from subdistribution curves for reconstructing CIC
pembro_NAR

Pembrolizumab example OS NAR table - pembrolizumab arm
pembro_clicks

Pembrolizumab example OS KM reconstruction clicks - pembrolizumab arm
pbo_clicks

Pembrolizumab example OS KM reconstruction clicks - placebo arm