dist.LASSO: LASSO Distribution

Description Usage Arguments Details Value References See Also Examples

Description

These functions provide the density and random generation for the Bayesian LASSO prior distribution.

Usage

1
2
dlasso(x, sigma, tau, lambda, a=1, b=1, log=FALSE)
rlasso(n, sigma, tau, lambda, a=1, b=1)

Arguments

x

This is a location vector of length J at which to evaluate density.

n

This is the number of observations, which must be a positive integer that has length 1.

sigma

This is a positive-only scalar hyperparameter sigma, which is also the residual standard deviation.

tau

This is a positive-only vector of hyperparameters, tau, of length J regarding local sparsity.

lambda

This is a positive-only scalar hyperhyperparameter, lambda, of global sparsity.

a, b

These are positive-only scalar hyperhyperhyperparameters for gamma distributed lambda.

log

Logical. If log=TRUE, then the logarithm of the density is returned.

Details

The Bayesian LASSO distribution (Parks and Casella, 2008) is a heavy-tailed mixture distribution that can be considered a variance mixture, and it is in the family of multivariate scale mixtures of normals.

The LASSO distribution was proposed as a prior distribution, as a Bayesian version of the frequentist LASSO, introduced by Tibshirani (1996). It is applied as a shrinkage prior in the presence of sparsity for J regression effects. LASSO priors are most appropriate in large-dimensional models where dimension reduction is necessary to avoid overly complex models that predict poorly.

The Bayesian LASSO results in regression effects that are a compromise between regression effects in the frequentist LASSO and ridge regression. The Bayesian LASSO applies more shrinkage to weak regression effects than ridge regression.

The Bayesian LASSO is an alternative to horseshoe regression and ridge regression.

Value

dlasso gives the density and rlasso generates random deviates.

References

Park, T. and Casella, G. (2008). "The Bayesian Lasso". Journal of the American Statistical Association, 103, p. 672–680.

Tibshirani, R. (1996). "Regression Shrinkage and Selection via the Lasso". Journal of the Royal Statistical Society, Series B, 58, p. 267–288.

See Also

dhs

Examples

1
2
3
4
5
6
7
library(LaplacesDemon)
x <- rnorm(100)
sigma <- rhalfcauchy(1, 5)
tau <- rhalfcauchy(100, 5)
lambda <- rhalfcauchy(1, 5)
x <- dlasso(x, sigma, tau, lambda, log=TRUE)
x <- rlasso(length(tau), sigma, tau, lambda)

LaplacesDemon documentation built on July 9, 2021, 5:07 p.m.