gigg
This package implements a Gibbs sampler corresponding to a Group Inverse-Gamma Gamma (GIGG) regression model with adjustment covariates. Hyperparameters in the GIGG prior specification can either be fixed by the user or can be estimated via Marginal Maximum Likelihood Estimation.
If the devtools package is not yet installed, install it first:
install.packages('devtools')
# install the package from Github:
::install_github('umich-cphds/gigg') devtools
Once installed, load the package:
library(gigg)
GIGG regression Gibbs sampler with fixed hyperparameters:
= concentrated$X
X = concentrated$C
C = as.vector(concentrated$Y)
Y = concentrated$grps
grp_idx = concentrated$alpha
alpha_inits = concentrated$beta
beta_inits
= gigg(X, C, Y, method = "fixed", grp_idx, alpha_inits, beta_inits,
gf n_burn_in = 500, n_samples = 1000, n_thin = 1,
verbose = TRUE, btrick = FALSE, stable_solve = TRUE)
GIGG regression Gibbs sampler with hyperparameter estimation via Marginal Maximum Likelihood Estimation:
= concentrated$X
X = concentrated$C
C = as.vector(concentrated$Y)
Y = concentrated$grps
grp_idx = concentrated$alpha
alpha_inits = concentrated$beta
beta_inits
= gigg(X, C, Y, method = "mmle", grp_idx, alpha_inits, beta_inits,
gf_mmle n_burn_in = 500, n_samples = 1000, n_thin = 1,
verbose = TRUE, btrick = FALSE, stable_solve = TRUE)
Boss, J., Datta, J., Wang, X., Park, S.K., Kang, J., & Mukherjee, B. (2021). Group Inverse-Gamma Gamma Shrinkage for Sparse Regression with Block-Correlated Predictors. arXiv preprint arXiv:2102.10670.