predict.listdtr: Treatment Recommendation Dictated by
List-based Optimal Dynamic Treatment Regime
Description
Provide treatment recommendation at a given stage using the features,
based on a given listdtr object.
Usage
# S3 method for listdtr
predict(object, xnew, stage, ...)
Arguments
object
an object of class listdtr,
usually the return value of function listdtr.
stage
an integer that specifies the stage.
…
further arguments passed to or from other methods.
Value
A factor vector that gives the estimated optimal treatment
for the features presented in each row of xnew.
The length is the same as
the number of rows in xnew.
The levels are the unique values of treatments actually received
at that stage.
Examples
Run this code# NOT RUN {
# see examples for listdtr
# }
Run the code above in your browser using DataLab