# ecpc: An R-package for generic co-data models for high-dimensional prediction

arXiv: https://arxiv.org/abs/2205.07640 · HTML: https://mlsanity.com/paper/2205.07640/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- Builds on 7 of its 36 references that are in the map.
- First posted on arXiv 16 May 2022.

## Builds on (most cited first, 7 of 7)

- [Better prediction by use of co-data: Adaptive group-regularized ridge regression](https://mlsanity.com/paper/1411.3496/) (2014)
- [Feature-weighted elastic net: using "features of features" for better prediction](https://mlsanity.com/paper/2006.01395/) (2020)
- [Adaptive penalization in high-dimensional regression and classification with external covariates using variational Bayes](https://mlsanity.com/paper/1811.02962/) (2018)
- [Flexible co-data learning for high-dimensional prediction](https://mlsanity.com/paper/2005.04010/) (2020)
- [Adaptive group-regularized logistic elastic net regression](https://mlsanity.com/paper/1805.00389/) (2018)
- [Fast marginal likelihood estimation of penalties for group-adaptive elastic net](https://mlsanity.com/paper/2101.03875/) (2021)
- [σ-Ridge: group regularized ridge regression via empirical Bayes noise level cross-validation](https://mlsanity.com/paper/2010.15817/) (2020)

## Built on by (most cited first, 2 of 2)

- [Co-data Learning for Bayesian Additive Regression Trees](https://mlsanity.com/paper/2311.09997/) (2023)
- [Guiding adaptive shrinkage by co-data to improve regression-based prediction and feature selection](https://mlsanity.com/paper/2405.04917/) (2024)

## Abstract (arXiv)

High-dimensional prediction considers data with more variables than samples. Generic research goals are to find the best predictor or to select variables. Results may be improved by exploiting prior information in the form of co-data, providing complementary data not on the samples, but on the variables. We consider adaptive ridge penalised generalised linear and Cox models, in which the variable specific ridge penalties are adapted to the co-data to give a priori more weight to more important variables. The R-package ecpc originally accommodated various and possibly multiple co-data sources, including categorical co-data, i.e. groups of variables, and continuous co-data. Continuous co-data, however, was handled by adaptive discretisation, potentially inefficiently modelling and losing information. Here, we present an extension to the method and software for generic co-data models, particularly for continuous co-data. At the basis lies a classical linear regression model, regressing prior variance weights on the co-data. Co-data variables are then estimated with empirical Bayes moment estimation. After placing the estimation procedure in the classical regression framework, extension to generalised additive and shape constrained co-data models is straightforward. Besides, we show how ridge penalties may be transformed to elastic net penalties with the R-package squeezy. In simulation studies we first compare various co-data models for continuous co-data from the extension to the original method. Secondly, we compare variable selection performance to other variable selection methods. Moreover, we demonstrate use of the package in several examples throughout the paper.
