survival_prob_km {survcompare}R Documentation

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)

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)

Value

vector of survival probabilities for time_points


[Package survcompare version 0.1.2 Index]