An open API service indexing awesome lists of open source software.

https://github.com/longhaisk/htlr

Bayesian Logistic Regression with Hyper-LASSO priors
https://github.com/longhaisk/htlr

bayesian classification high-dimensional-data machine-learning mcmc

Last synced: 4 months ago
JSON representation

Bayesian Logistic Regression with Hyper-LASSO priors

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
## HTLR: Bayesian Logistic Regression with Heavy-tailed Priors

### a test

[![CRAN status](https://www.r-pkg.org/badges/version/HTLR)](https://CRAN.R-project.org/package=HTLR)
[![build](https://github.com/longhaiSK/HTLR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/longhaiSK/HTLR/actions/workflows/R-CMD-check.yaml)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![downloads](https://cranlogs.r-pkg.org/badges/grand-total/HTLR)](https://cran.r-project.org/package=HTLR)

*HTLR* performs classification and feature selection by fitting Bayesian polychotomous (multiclass, multinomial) logistic regression models based on heavy-tailed priors with small degree freedom. This package is suitable for classification with high-dimensional features, such as gene expression profiles. Heavy-tailed priors can impose stronger shrinkage (compared to Guassian and Laplace priors) to the coefficients associated with a large number of useless features, but still allow coefficients of a small number of useful features to stand out with little punishment. Heavy-tailed priors can also automatically make selection within a large number of correlated features. The posterior of coefficients and hyperparameters is sampled with resitricted Gibbs sampling for leveraging high-dimensionality and Hamiltonian Monte Carlo for handling high-correlations among coefficients.

## Installation

[CRAN](https://CRAN.R-project.org) version (recommended):

``` r
install.packages("HTLR")
```

Development version on [GitHub](https://github.com/):

``` r
# install.packages("devtools")
devtools::install_github("longhaiSK/HTLR")

```

This package uses library [Armadillo](https://arma.sourceforge.net/) for carrying out most of matrix operations, you may get speed benefits from using an alternative BLAS library such as [ATLAS](https://math-atlas.sourceforge.net/), [OpenBLAS](https://www.openblas.net/) or Intel MKL. Check out this [post](https://brettklamer.com/diversions/statistical/faster-blas-in-r/) for the comparison and the installation guide. Windows users may consider installing [Microsoft R Open](https://mran.microsoft.com/open).

## Reference

Longhai Li and Weixin Yao (2018). Fully Bayesian Logistic Regression with Hyper-Lasso Priors for High-dimensional Feature Selection. \emph{Journal of Statistical Computation and Simulation} 2018, 88:14, 2827-2851, [the published version](https://www.tandfonline.com/doi/full/10.1080/00949655.2018.1490418), or [arXiv version](https://arxiv.org/pdf/1405.3319.pdf).