forestsearch: Exploratory Subgroup Identification in Survival and GLM Outcomes

Implements statistical methods for exploratory subgroup identification in clinical trials. Provides tools for identifying patient subgroups with differential treatment effects using machine learning approaches including Generalized Random Forests (GRF), LASSO regularization, and exhaustive combinatorial search algorithms. Supports survival endpoints (Cox proportional hazards), binary outcomes (log odds ratio, log relative risk, risk difference), continuous outcomes (mean difference), and count / rate outcomes (log incidence rate ratio via Poisson, quasi-Poisson, or negative-binomial GLMs with optional person-time offset). Features bootstrap bias correction using infinitesimal jackknife methods to address selection bias in post-hoc analyses. Designed for clinical researchers conducting exploratory subgroup analyses in randomized controlled trials, particularly for multi-regional clinical trials (MRCT) requiring regional consistency evaluation. Methods are described in Leon et al. (2024) <doi:10.1002/sim.10163>. Post-selection inference for the identified subgroup follows León and Anderson (2026) <doi:10.48550/arXiv.2609.38361>. The search methodology is given in León and Anderson (2026) <doi:10.48550/arXiv.2610.28379>.

Package details

AuthorLarry Leon [aut, cre]
MaintainerLarry Leon <larry.leon.05@post.harvard.edu>
LicenseMIT + file LICENSE
Version0.5.0
URL https://github.com/larry-leon/forestsearch  https://larry-leon.github.io/forestsearch/ 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("forestsearch")

Try the forestsearch package in your browser

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

forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.