The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Mhorseshoe is a package for a high-dimensional Bayesian linear modeling algorithm using a horseshoe prior. A feature of this package is that it implements approximate MCMC algorithm from Johndrow et al. (2020) and provides a horseshoe estimator that can effectively reduce computational costs for high-dimensional sparse data. This package provides two different algorithm functions :
-exact_horseshoe()
Run the horseshoe estimator.
-approx_horseshoe()
Run the horseshoe estimator with the
approximate algorithm applied.
install.package("Mhorseshoe")
The following linear model assumptions are made.
\[L(y\ |\ x, \beta, \sigma^2) = (\frac{1}{\sqrt{2\pi}\sigma})^{-N/2}exp \{ -\frac{1}{2\sigma^2}(y-X\beta)^T(y-X\beta)\},\\ X \in \mathbb{R}^{N \times p},\ y \in \mathbb{R}^{N},\ \beta \in \mathbb{R}^{p}\]
# Run functions from the Mhorseshoe package
<- exact_horseshoe(y, X, burn = 5000, iter = 10000)
ex_result <- approx_horseshoe(y, X, burn = 5000, iter = 10000)
ap_result
# posterior mean of beta
<- ex_result$BetaHat
ex_betahat <- ap_result$BetaHat
ap_betahat
# 95% posterior credible intervals
<- ex_result$LeftCI
ex_LeftCI <- ex_result$RightCI
ex_RightCI <- ap_result$LeftCI
ap_LeftCI <- ap_result$RightCI ap_RightCI
Johndrow, J., Orenstein, P., & Bhattacharya, A. (2020). Scalable Approximate MCMC Algorithms for the Horseshoe Prior. In Journal of Machine Learning Research (Vol. 21).
If you would like to discuss this package, please email leehuimin115@g.skku.edu
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.