Reconstruct digitized Kaplan-Meier curves and generate invididual patient data
Reconstruct individual-level data from augmented survival table and augmented NAR table, with augmentation performed by format_raw_tabs().
KM_reconstruct(aug_NAR, aug_surv)
aug_NAR
: A data frame processed through format_raw_tabs().aug_surv
: A data frame processed through format_raw_tabs().A list including IPD_time, IPD_event, n_hat=n_hat, KM_hat, n_cen, n_event, int_censor
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)
Useful links