survsrfstack_predict: Predicts event probability by a trained stacked ensemble of...

View source: R/survSRF_stack.R

survsrfstack_predictR Documentation

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

Description

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

Usage

survsrfstack_predict(
  trained_object,
  newdata,
  fixed_time,
  predict.factors,
  extrapsurvival = TRUE
)

Arguments

trained_object

a trained model, output of survsrfstack_train()

newdata

new data for which predictions are made

fixed_time

time of interest, for which event probabilities are computed

predict.factors

list of predictor names

extrapsurvival

if probabilities are extrapolated beyond trained times (constant)

Value

vector of predicted event probabilities


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