survsrf_predict: Predicts event probability by a trained Survival Random...

View source: R/survSRF.R

survsrf_predictR Documentation

Predicts event probability by a trained Survival Random Forest

Description

Predicts event probability by a trained Survival Random Forest

Usage

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

Arguments

trained_model

a trained SRF model, output of survsrf_train(), or randomForestSRC::rfsrc()

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 (using probability of the lastest available time). Can be helpful for cross-validation of small data, where random split may cause the time of interest being outside of the training set.

Value

vector of predicted event probabilities


survcompare documentation built on June 25, 2025, 5:09 p.m.