DTRlearn2: Statistical Learning Methods for Optimizing Dynamic Treatment Regimes

We provide a comprehensive software to estimate general K-stage DTRs from SMARTs with Q-learning and a variety of outcome-weighted learning methods. Penalizations are allowed for variable selection and model regularization. With the outcome-weighted learning scheme, different loss functions - SVM hinge loss, SVM ramp loss, binomial deviance loss, and L2 loss - are adopted to solve the weighted classification problem at each stage; augmentation in the outcomes is allowed to improve efficiency. The estimated DTR can be easily applied to a new sample for individualized treatment recommendations or DTR evaluation.

Getting started

Package details

AuthorYuan Chen [aut, cre], Ying Liu [aut], Tianchen Xu [ctb] (ORCID: <https://orcid.org/0000-0002-0102-7630>), Donglin Zeng [ctb], Yuanjia Wang [ctb]
MaintainerYuan Chen <irene.yuan.chen@gmail.com>
LicenseGPL-2
Version2.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("DTRlearn2")

Try the DTRlearn2 package in your browser

Any scripts or data that you put into this service are public.

DTRlearn2 documentation built on Sept. 11, 2026, 1:07 a.m.