survsrf_predict {survcompare} | R Documentation |
Predicts event probability for a fitted SRF model
Description
Predicts event probability for a fitted SRF model randomForestSRC::rfsrc. Essentially a wrapper of srf_survival_prob_for_time.
Usage
survsrf_predict(trained_model, newdata, fixed_time, oob = FALSE)
Arguments
trained_model |
trained model |
newdata |
test data |
fixed_time |
time for which probabilities are computed |
oob |
TRUE/FALSE use out-of-bag predictions while tuning instead of cross-validation, default is TRUE and is faster |
Value
returns vector of predictions (or matrix if fixed_time is a vector of times)
[Package survcompare version 0.1.2 Index]