Package: forestsearch
Title: Exploratory Subgroup Identification in Survival and GLM Outcomes
Version: 0.4.0
Authors@R: person("Larry", "Leon", , "larry.leon.05@post.harvard.edu", role = c("aut", "cre"))
Description: 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>.
License: MIT + file LICENSE
Depends: R (>= 4.1.0)
Encoding: UTF-8
VignetteBuilder: knitr, quarto
SystemRequirements: Quarto command line tools
        (https://github.com/quarto-dev/quarto-cli)
Imports: data.table, doFuture, dplyr, foreach, future, future.apply,
        future.callr, ggplot2, glmnet (>= 5.0), grf, gt, Matrix,
        mvtnorm, parallel, patchwork, policytree, progressr,
        randomForest, rlang, stats, survival, utils, weightedsurv (>=
        0.1.0)
Suggests: DiagrammeR, doRNG, htmltools, MASS, sandwich, tidyr,
        forestploter, cubature, svglite, knitr, rmarkdown, katex,
        latentcor, quarto, testthat (>= 3.0.0)
URL: https://github.com/larry-leon/forestsearch,
        https://larry-leon.github.io/forestsearch/
BugReports: https://github.com/larry-leon/forestsearch/issues
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.0
NeedsCompilation: no
Packaged: 2026-10-10 04:12:05 UTC; larryleon
Author: Larry Leon [aut, cre]
Maintainer: Larry Leon <larry.leon.05@post.harvard.edu>
Repository: CRAN
Date/Publication: 2026-10-10 04:40:02 UTC
Built: R 4.6.1; ; 2026-10-10 06:28:27 UTC; unix
