Description Usage Arguments Details Value
Retrieves the estimated or predicted optimal treatment.
1 2 3 4 |
x |
an object of class DynTxRegime. |
newdata |
an object of class data.frame containing covariates and treatment histories. |
... |
ignored. |
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.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.