format_raw_tabs: Format raw survival and NAR tables so they are ready for...

View source: R/format_raw_tabs.R

format_raw_tabsR Documentation

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

Description

Augment a raw number at risk table with the necessary information to run the reconstruction algorithm.

Usage

format_raw_tabs(raw_NAR, raw_surv)

Arguments

raw_NAR

A data frame with the columns 'time' and NAR' at least.

raw_surv

A data frame with the columns 'time' and 'survival' at least.

Value

A list with aug_NAR and aug_surv, properly cleaned tables that can be used as input in KM_reconstruct().

Examples

data(pembro_clicks)
data(pembro_NAR)
augTabs <- format_raw_tabs(raw_NAR=pembro_NAR, raw_surv=pembro_clicks)


reconstructKM documentation built on Dec. 3, 2025, 5:06 p.m.