methods-optTx: Methods to Retrieve Estimated or to Predict Optimal Treatment

Description Usage Arguments Details Value

Description

Retrieves the estimated or predicted optimal treatment.

Usage

1
2
3
4
## S4 method for signature 'DynTxRegime,missing'
optTx(x, newdata, ...)  
## S4 method for signature 'DynTxRegime,data.frame'
optTx(x, newdata, ...)  

Arguments

x

an object of class DynTxRegime.

newdata

an object of class data.frame containing covariates and treatment histories.

...

ignored.

Details

For all DynTxRegime treatment regime methods, if newdata is missing, optTx retrieves the estimated optimal treatment for the training data.

If newdata is provided, optTx estimates the optimal treatment for the new data based on the original analysis.

For optimalSeq, an optinal argument, dp, must be set, which indicates the stage of treatment for which the estimated optimal treatment is desired.

Value

For outcome regression methods Q-Learning and IQ-Learning a list

qFunctions

a matrix of estimated Q-Functions.

optimalTx

a vector of estimated optimal treatments.

For value-search methods optimalClass and optimalSeq a a matrix of estimated optimal treatments.


DynTxRegime documentation built on May 2, 2019, 5:21 p.m.