BGLR: An R Package for (Bayesian) High-Dimensional Regression
The BGLR Package (Perez & de los Campos, 2014) implements a variety of shrinkage and variable selection regression procedures. In this repository we maintain the latest
beta version. The latest stable release can be downloaded from CRAN.
The Multitrait function included in the BGLR package fits Bayesian multitrait models with
arbitrary number of random effects using a Gibbs sampler. A functionality similar to this
is implemented in the MTM package. In
this implementation is possible to include regression on markers directly assigning Spike-slab or
Gaussian priors for the regression coefficients and fixed effects can be different for all the traits.
We also have improved the sampling routines to speed up computations. Next we include some examples.
BGLR: An R Package for (Bayesian) High-Dimensional Regression
The BGLR Package (Perez & de los Campos, 2014) implements a variety of shrinkage and variable selection regression procedures. In this repository we maintain the latest beta version. The latest stable release can be downloaded from CRAN.
Citation
Please cite Perez & de los Campos, 2014 and Perez & de los Campos, 2022 for BGLR and Multitrait, respectively.
Installation
From CRAN (stable release).
From GitHub (development version, added features).
Note: when trying to install from github on a mac you may get the following error message
This can be fixed it by installing gfortan, for mac os you can use this
Useful references:
1. Single-Trait Models
Examples BGLR-function
1. Parametric Bayesian Regression
2. Estimating or Fixing Hyper-parameters?
3. GBLUP: various implementations with BGLR
4. Prediction in testing sets: three methods
5. Semi-parametric regression (RKHS) using BGLR
6. Fitting Models with Multiple sets of Effects (“Mixed-Effects Model”)
7. Saving Samples of Effects in Binary Files
8. Heritability Estimation: two methods
9. Heterogeneous Error Variance Models
10. GxE Using Interactions
11. Modeling Genetic Heterogeneity Using Interactions
12. Estimating the Proportion of Variance Explained by Principal Components
13. Categorical (binary and ordinal) Regression
14. Censored Regression
15. Bayesian regressions with markers sets: an example of how BGLR can be used to fit models with set-specific priors
16. BRR-sets: Guassian prior with set-specific variances
17. Multi-trait prediction using eigenvectors
18. Two-steps Finlay-Wilkinson Regression
Other Omics
Markers or Pedigree and Environmental Covariates
-Wheat (SNPs and env. covariates): Jarquin et al. (TAG, 2014)
-Cotton (Pedigree and env. covariates): Perez-Rodriguez et al.(Crop. Sci, 2015)
Image Data
-Maize (Image data): Aguate et al. (Crop. Sci, 2017)
2. Multi-trait models
The Multitrait function included in the BGLR package fits Bayesian multitrait models with arbitrary number of random effects using a Gibbs sampler. A functionality similar to this is implemented in the MTM package. In this implementation is possible to include regression on markers directly assigning Spike-slab or Gaussian priors for the regression coefficients and fixed effects can be different for all the traits. We also have improved the sampling routines to speed up computations. Next we include some examples.
Supplementary scripts for the draft of the paper “Multi-trait Bayesian Shrinkage and Variable Selection Models with the BGLR R-package”