Learn R Programming

DynTxRegime (version 3.01)

QLearn-class: Class

Description

Class implementing a step of the Q-Learning Algorithm

Arguments

Objects from the Class

Objects can be created by calls of the form new("QLearn", ...). These objects are for convenience in package development and should not be created by users.

Slots

step:
Object of class "integer." The step of the Q-Learning algorithm.

decisionFunc:
Object of class "matrix." The value of the decision function at each treatment option.

Extends

Classes "OutcomeOnly-class" and "DynTxRegime-class," directly.

Methods

DTRstep
signature(object = "QLearn"): Retrieve description of method implemented to obtain object.

optTx
signature(x = "QLearn", newdata = "data.frame"): Predict optimal treatments for newdata.

optTx
signature(x = "QLearn", newdata = "missing"): Retrieve optimal treatments for training data.

print
signature(x = "QLearn"): Print key results of method.

show
signature(object = "QLearn"): Show key results of method.

summary
signature(object = "QLearn"): Retrieve key summary information of method.

Examples

Run this code
showClass("QLearn")

Run the code above in your browser using DataLab