Learn R Programming

survcompare (version 0.2.0)

survsrfens_predict: Predicts event probability by a trained sequential ensemble of Survival Random Forest and CoxPH

Description

Predicts event probability by a trained sequential ensemble of Survival Random Forest and CoxPH

Usage

survsrfens_predict(trained_model, newdata, fixed_time, extrapsurvival = TRUE)

Value

vector of predicted event probabilities

Arguments

trained_model

a trained model, output of survsrfens_train()

newdata

new data for which predictions are made

fixed_time

time of interest, for which event probabilities are computed

extrapsurvival

if probabilities are extrapolated beyond trained times (constant)