predict.listdtr: Treatment Recommendation Dictated by List-based Optimal...

Description Usage Arguments Value See Also Examples

View source: R/dtr.R

Description

Provide treatment recommendation at a given stage using the features, based on a given listdtr object.

Usage

1
2
## S3 method for class 'listdtr'
predict(object, xnew, stage, ...)

Arguments

object

an object of class listdtr, usually the return value of function listdtr.

xnew

a matrix of features.

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.

See Also

listdtr, apply.rule

Examples

1
  # see examples for listdtr

listdtr documentation built on March 5, 2021, 1:07 a.m.