Learn R Programming

survcompare (version 0.1.2)

predict.survensemble: Predicts event probability for a fitted survensemble

Description

predict.survensemble

Usage

# S3 method for survensemble
predict(object, newdata, fixed_time, oob = FALSE, ...)

Value

matrix of predictions for observations in newdata by times

Arguments

object

trained survensemble model

newdata

test data

fixed_time

time for which probabilities are computed

oob

TRUE/FALSE , default is FALSE, if out of bag predictions are to be made from SRF

...

other parameters to pass