Learn R Programming

ShrinkageTrees

This package provides functions for fitting Horseshoe Trees, Causal Horseshoe Forests, and their more general counterparts: Shrinkage Trees and Causal Shrinkage Forests.

These models allow for global-local shrinkage priors on tree step heights, enabling adaptive modeling in high-dimensional settings.

The functions can be used for:

  1. High-dimensional prediction
  2. High-dimensional causal inference
  3. Estimaton of heterogeneous (conditional average) treatment effects

Supported outcome types: continuous, binary, and right-censored survival times.

The mathematical background and theoretical foundation for these models is described in the preprint Horseshoe Forests for High-Dimensional Causal Survival Analysis by T. Jacobs, W.N. van Wieringen, and S.L. van der Pas (arXiv:2507.22004).

✨ Features

  • Horseshoe, forest-wide horseshoe, empirical Bayes Horseshoe, and half-Cauchy priors
  • Flexible tree-based non-linear modeling of the ATE and CATE
  • Supports survival data with right-censoring (accelerated failure time model)
  • Efficient C++ backend via Rcpp

Copy Link

Version

Install

install.packages('ShrinkageTrees')

Monthly Downloads

1,496

Version

1.0.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tijn Jacobs

Last Published

October 6th, 2025

Functions in ShrinkageTrees (1.0.2)

censored_info

Compute mean estimate for censored data
pdac

Processed TCGA PAAD dataset (pdac)
ShrinkageTrees

General Shrinkage Regression Trees (ShrinkageTrees)
CausalShrinkageForest

General Causal Shrinkage Forests
CausalHorseForest

Causal Horseshoe Forests
HorseTrees

Horseshoe Regression Trees (HorseTrees)