Description Usage Arguments Value Author(s) Source Examples
Gibbs Sampler for Bayesian Lasso
1 | gibbsBLasso(x, y, max.steps = 1e+05)
|
x |
Desing matrix |
y |
Data |
max.steps |
Number of iterations |
Vector of posterior median beta
Pu Wang, George Mason University, Fairfax, USA
https://cs.gmu.edu/~pwang7/gibbsBLasso.html
1 2 3 4 5 | library(lars)
data(diabetes)
x <- scale(diabetes$x)
y <- scale(diabetes$y)
betas <- gibbsBLasso(x, y, max.steps = 100000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.