Learn R Programming

⚠️There's a newer version (0.4-4) of this package.Take me there.

HTLR: Bayesian Logistic Regression with Heavy-tailed Priors

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 version (recommended):

install.packages("HTLR")

Development version on GitHub:

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

Reference

Longhai Li and Weixin Yao (2018). Fully Bayesian Logistic Regression with Hyper-Lasso Priors for High-dimensional Feature Selection. 2018, 88:14, 2827-2851, the published version, or arXiv version.

Copy Link

Version

Install

install.packages('HTLR')

Monthly Downloads

226

Version

0.4-3

License

GPL-3

Maintainer

Longhai Li

Last Published

September 9th, 2020

Functions in HTLR (0.4-3)

HTLR-package

Bayesian Logistic Regression with Heavy-Tailed Priors
as.matrix.htlr.fit

Create a Matrix of Markov Chain Samples
colon

Colon Tissues
gendata_MLR

Generate Simulated Data with Multinomial Logistic Regression Model
gendata_FAM

Generate Simulated Data with Factor Analysis Model
bcbcsf_deltas

Bias-corrected Bayesian classification initial state
htlr_prior

Generate Prior Configuration
order_ftest

Order features by F-statistic
htlr_predict

Make Prediction on New Data (Advanced)
order_kruskal

Order features by Kruskal-Wallis test
htlr

Fit a HTLR Model
evaluate_pred

Evaluate Prediction Results
split_data

Split Data into Train and Test Partitions
predict.htlr.fit

Make Prediction on New Data
diabetes392

Pima Indians Diabetes
order_plain

Plain order function
htlr_fit

Fit a HTLR Model (Internal API)
std

Standardizes a Design Matrix
nzero_idx

Get Indices of Non-Zero Coefficients
summary.htlr.fit

Posterior Summaries
%>%

Pipe operator
lasso_deltas

Lasso Initial State