Learn R Programming

reconstructKM (version 0.4.0)

KM_reconstruct: Reconstruct digitized Kaplan-Meier curves and generate invididual patient data

Description

Reconstruct individual-level data from augmented survival table and augmented NAR table, with augmentation performed by format_raw_tabs().

Usage

KM_reconstruct(aug_NAR, aug_surv)

Value

A list including IPD_time, IPD_event, n_hat=n_hat, KM_hat, n_cen, n_event, int_censor

Arguments

aug_NAR

A data frame processed through format_raw_tabs().

aug_surv

A data frame processed through format_raw_tabs().

Examples

Run this code
data(pembro_NAR)
data(pembro_clicks)
augTabs <- format_raw_tabs(raw_NAR=pembro_NAR, raw_surv=pembro_clicks)
KM_reconstruct(aug_NAR=augTabs$aug_NAR, aug_surv=augTabs$aug_surv)

Run the code above in your browser using DataLab