predict.RLT {RLT} | R Documentation |
Predict future subjects with a fitted RLT model
## S3 method for class 'RLT' predict(object, testx, ...)
object |
A fitted RLT object |
testx |
Testing data |
... |
... |
The predicted values. For survival model, it returns the fitted survival functions
x = matrix(rnorm(100), ncol = 10) y = rowMeans(x) fit = RLT(x, y, ntrees = 5) predict(fit, x)