TRexSelector R package guide

The TRexSelector R package

Fast variable selection in high-dimensional settings with control of the false discovery rate (FDR).

The R package of the Terminating-Random Experiments (T-Rex) selector, with bindings to the TRexSelector C++ library. The Python package binds the same library. The vignettes walk through the package with code that runs when they are built, so every output shown is the output of the code above it, and the reference manual describes every class and function from its help page. The user guides of the Python package and the C++ library present the same content page for page.

The method family grows within a series of papers, among which the following three form the theoretical core of the framework so far:

J. Machkour, M. Muma, and D. P. Palomar, “The terminating-random experiments selector: Fast high-dimensional variable selection with false discovery rate control,” Signal Processing, vol. 231, article 109894, 2025. (https://doi.org/10.1016/j.sigpro.2025.109894)

J. Machkour, M. Muma, and D. P. Palomar, “High-dimensional false discovery rate control for dependent variables,” Signal Processing, vol. 234, article 109990, 2025. (https://doi.org/10.1016/j.sigpro.2025.109990)

T. Koka, J. Machkour, D. P. Palomar, and M. Muma, “Virtual dummies: Enabling scalable FDR-controlled variable selection via sequential sampling of null features,” arXiv:2604.07464, 2026. (https://arxiv.org/abs/2604.07464)

User guide

  1. Getting started
  2. Data dimensionality and FDR control
  3. The T-Rex selector
  4. T-Rex+DA
  5. T-Rex GVS
  6. Screen-T-Rex
  7. T-Rex SPCA
  8. T-Rex Tikhonov
  9. The T-solvers
  10. The ML methods
  11. Memory mapping
  12. Without data copies
  13. Parallelism

Every page is a vignette of the package. browseVignettes("TRexSelector") lists them together with this overview, and vignette("v01-getting-started") opens a page in the viewer of the R session. The pages cite the literature, and every page ends with its bibliography. The vignettes are built with knitr [1] and rmarkdown [2], and their figures are drawn with ggplot2 [3].

Reference

Bibliography

[1]
Y. Xie, Dynamic documents with R and knitr, 2nd ed. Boca Raton, Florida: Chapman; Hall/CRC, 2015. Available: https://yihui.org/knitr/
[2]
Y. Xie, J. J. Allaire, and G. Grolemund, R Markdown: The definitive guide. Boca Raton, Florida: Chapman; Hall/CRC, 2018. Available: https://pkg.yihui.org/rmarkdown-book/
[3]
H. Wickham, ggplot2: Elegant graphics for data analysis. Springer-Verlag New York, 2016. Available: https://ggplot2.tidyverse.org