GUD: Bayesian Modal Regression Based on the GUD Family

Provides probability density functions and sampling algorithms for three key distributions from the General Unimodal Distribution (GUD) family: the Flexible Gumbel (FG) distribution, the Double Two-Piece (DTP) Student-t distribution, and the Two-Piece Scale (TPSC) Student-t distribution. Additionally, this package includes a function for Bayesian linear modal regression, leveraging these three distributions for model fitting. The details of the Bayesian modal regression model based on the GUD family can be found at Liu, Huang, and Bai (2022) <doi:10.48550/arXiv.2211.10776>.

Version: 0.0.5
Depends: R (≥ 3.4.0)
Imports: MASS, methods, Rcpp (≥ 0.12.0), RcppParallel (≥ 5.0.1), rstan (≥ 2.18.1), rstantools (≥ 2.4.0), posterior (≥ 1.5.0)
LinkingTo: BH (≥ 1.66.0), Rcpp (≥ 0.12.0), RcppEigen (≥, RcppParallel (≥ 5.0.1), rstan (≥ 2.18.1), StanHeaders (≥ 2.18.0)
Published: 2024-05-27
DOI: 10.32614/CRAN.package.GUD
Author: Qingyang Liu ORCID iD [aut, cre], Xianzheng Huang ORCID iD [aut], Ray Bai ORCID iD [aut]
Maintainer: Qingyang Liu <qingyang at>
License: MIT + file LICENSE
NeedsCompilation: yes
SystemRequirements: GNU make
Materials: NEWS
CRAN checks: GUD results


Reference manual: GUD.pdf


Package source: GUD_0.0.5.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): GUD_0.0.5.tgz, r-oldrel (arm64): GUD_0.0.5.tgz, r-release (x86_64): GUD_0.0.5.tgz, r-oldrel (x86_64): GUD_0.0.5.tgz


Please use the canonical form to link to this page.