predict.RLT: Prediction function for reinforcement learning trees

View source: R/predict.r

predict.RLTR 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)

RLT documentation built on April 28, 2023, 5:08 p.m.