Learn R Programming

Sparse regression for related problems

Estimates sparse regression models (i.e., with few non-zero coefficients) in high-dimensional multi-task learning and transfer learning settings

Installation

Install the current release from CRAN:

#install.packages("sparselink") # not yet available

or the latest development version from GitHub:

#install.packages("remotes")
remotes::install_github("rauschenberger/sparselink")

This repository is mirrored on two institutional GitLab instances (see LIH and LCSB).

Reference

Armin Rauschenberger , Petr V. Nazarov , and Enrico Glaab (2025). "Estimating sparse regression models in multi-task learning and transfer learning through adaptive penalisation". Manuscript in preparation.

Reproducibility

The code for reproducing the simulations and applications shown in the manuscript is available in a vignette (analysis). After installing the package with remotes::install_github("rauschenberger/sparselink",build_vignettes=TRUE) and restarting R, the vignette can also be loaded with vignette(topic="analysis",package="sparselink").

Disclaimer

The R package sparselink implements sparse regression for related problems (Rauschenberger et al., 2025).

Copyright © 2025 Armin Rauschenberger; Luxembourg Institute of Health (LIH), Department of Medical Informatics (DMI), Bioinformatics and Artificial Intelligence (BioAI); University of Luxembourg, Luxembourg Centre for Systems Biomedicine (LCSB), Biomedical Data Science (BDS)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copy Link

Version

Install

install.packages('sparselink')

Monthly Downloads

108

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Armin Rauschenberger

Last Published

June 3rd, 2025

Functions in sparselink (1.0.0)

sigmoid

Sigmoid function
predict.sparselink

Out-of-sample Predictions
plot_change

Pairwise differences
plot_weight

Visualise metric that depends on two parameters
sim_data_multi

Data simulation for related problems
print.sparselink

Print sparselink object
methods

Available methods
mean_function

Mean function
sparselink-package

Sparse regression for related problems
sparselink

Sparse regression for related problems
make_folds_multi

Create folds for multi-task and transfer learning
traintest

Train and test model
construct_weights

Construct internal and external weights
fuse_data

Data fusion
count_vector

Metrics for sign detection
cv_multiple

Model comparison
coef.sparselink

Regression Coefficients
get_info

Extract dimensionality.
construct_penfacs

Construct penalty factors
calc_metric

Calculate deviance
link_function

Link function
logit

logit function