predict.RLT {RLT}R Documentation

Prediction function for reinforcement learning trees

Description

Predict future subjects with a fitted RLT model

Usage

## S3 method for class 'RLT'
predict(object, testx, ...)

Arguments

object

A fitted RLT object

testx

Testing data

...

...

Value

The predicted values. For survival model, it returns the fitted survival functions

Examples

x = matrix(rnorm(100), ncol = 10)
y = rowMeans(x)
fit = RLT(x, y, ntrees = 5)
predict(fit, x)

[Package RLT version 3.2.6 Index]