Learn R Programming

survcompare (version 0.2.0)

survival_prob_km: Calculates survival probability estimated by Kaplan-Meier survival curve Uses polynomial extrapolation in survival function space, using poly(n=3)

Description

Calculates survival probability estimated by Kaplan-Meier survival curve Uses polynomial extrapolation in survival function space, using poly(n=3)

Usage

survival_prob_km(df_km_train, times, estimate_censoring = FALSE)

Value

vector of survival probabilities for time_point

Arguments

df_km_train

event probabilities (!not survival)

times

times at which survival is estimated

estimate_censoring

FALSE by default, if TRUE, event and censoring is reversed (for IPCW calculations)