rjaf: Regularized Joint Assignment Forest with Treatment Arm Clustering

Learning optimal assignment of treatments is an important problem in economics, public health, and related fields, particularly when faced with a variety of treatment strategies.The problem arises, for example, in settings where randomized controlled trials (RCT) are conducted to evaluate various behavioral science-informed interventions aimed at fostering behavior change (Milkman, Gromet, et al., 2021).Such interventions have been studied across diverse domains, including encouraging gym attendance and increasing vaccine uptake for influenza or COVID-19 (Dai et al., 2021; Milkman, Gromet, et al., 2021;Milkman, Patel, et al., 2021;Milkman et al., 2022).While most studies focus on identifying interventions that perform best on average, this approach often overlooks effect heterogeneity.Ignoring heterogeneity can be a missed opportunity to tailor interventions for maximum effectiveness and may even exacerbate disparities (Bryan et al., 2021).Subject-specific covariates, such as sociodemographics can be harnessed to identify which interventions work best for different segments of the population, allowing for more impactful intervention assignments.The rjaf package provides a user-friendly implementation of the regularized joint assignment forest (RJAF) (Ladhania et al., 2023), a regularized forest-type assignment algorithm based on greedy recursive partitioning (Athey et al., 2019) that shrinks effect estimates across treatment arms.The algorithm is augmented by outcome residualization to reduce baseline variation, and employs a clustering scheme (Hartigan & Wong, 1979) that combines treatment arms with consistently similar outcomes.Personalized treatment learning is achieved by optimizing a regularized empirical analogue of the expected outcome.The integration of R (R Core Team, 2024) and C++ (Stroustrup, 2013) substantially boosts computational efficiency in tree partitioning and aggregating.It is especially suitable in RCT settings with numerous treatment arms and constrained sample sizes, making it a powerful tool for learning personalized intervention strategies.

Authors

Institutions

Publication Details

Journal
The Journal of Open Source Software
Published
2025-04-09
DOI
https://doi.org/10.21105/joss.07843
Primary Topic
Machine Learning and Data Classification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

rjaf: Regularized Joint Assignment Forest with Treatment Arm Clustering

Rahul Ladhania, Jann Spiess, Wenbo Wu, Xinyi Zhang
The Journal of Open Source Software
Machine Learning and Data Classification
article

rjaf: Regularized Joint Assignment Forest with Treatment Arm Clustering

Rahul Ladhania, Jann Spiess, Wenbo Wu, Xinyi Zhang
article en

Abstract

Learning optimal assignment of treatments is an important problem in economics, public health, and related fields, particularly when faced with a variety of treatment strategies.The problem arises, for example, in settings where randomized controlled trials (RCT) are conducted to evaluate various behavioral science-informed interventions aimed at fostering behavior change (Milkman, Gromet, et al., 2021).Such interventions have been studied across diverse domains, including encouraging gym attendance and increasing vaccine uptake for influenza or COVID-19 (Dai et al., 2021; Milkman, Gromet, et al., 2021;Milkman, Patel, et al., 2021;Milkman et al., 2022).While most studies focus on identifying interventions that perform best on average, this approach often overlooks effect heterogeneity.Ignoring heterogeneity can be a missed opportunity to tailor interventions for maximum effectiveness and may even exacerbate disparities (Bryan et al., 2021).Subject-specific covariates, such as sociodemographics can be harnessed to identify which interventions work best for different segments of the population, allowing for more impactful intervention assignments.The rjaf package provides a user-friendly implementation of the regularized joint assignment forest (RJAF) (Ladhania et al., 2023), a regularized forest-type assignment algorithm based on greedy recursive partitioning (Athey et al., 2019) that shrinks effect estimates across treatment arms.The algorithm is augmented by outcome residualization to reduce baseline variation, and employs a clustering scheme (Hartigan & Wong, 1979) that combines treatment arms with consistently similar outcomes.Personalized treatment learning is achieved by optimizing a regularized empirical analogue of the expected outcome.The integration of R (R Core Team, 2024) and C++ (Stroustrup, 2013) substantially boosts computational efficiency in tree partitioning and aggregating.It is especially suitable in RCT settings with numerous treatment arms and constrained sample sizes, making it a powerful tool for learning personalized intervention strategies.

The Journal of Open Source SoftwareVol. 10(108)
University of Michigan (US), New York University (US), Stanford University (US)
Life in Land
Openalex Percentile: Top 97%
Machine Learning and Data Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.