Skip to content

GUD

Bayesian Modal Regression Based on the GUD Family

v1.0.2 · Jul 1, 2024 · GPL (>= 3)

Description

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 (2024) <doi:10.1016/j.csda.2024.108012>.

Downloads

CRAN

263

Last 30 days

18590th

627

Last 90 days

2.2K

Last year

Trend: +85.2% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

115

Last 90 days

390

Last year

Trend: -40% (30d vs prior 30d)

autoCRAN

6

Last 7 days

11

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 68.1Mb
  sub-directories of 1Mb or more:
    libs  67.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 69.3Mb
  sub-directories of 1Mb or more:
    libs  68.4Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/GUD.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 68.1Mb
  sub-directories of 1Mb or more:
    libs  67.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 69.3Mb
  sub-directories of 1Mb or more:
    libs  68.4Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 68.1Mb
  sub-directories of 1Mb or more:
    libs  67.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 69.3Mb
  sub-directories of 1Mb or more:
    libs  68.4Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.

Code

Structure

Lines of code

3,120

Files

47

Compiled share

77.1%

Has compiled src

Yes

Language breakdown

R 312 (10%)C/C++/src 2,404 (77.1%)Docs 312 (10%)Vignettes 92 (2.9%)

API

Exported functions

7

Internal functions

4

Recent export changes

v0.0.5+7 dDTP, dFG, dTPSC +4 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

25%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

85.7%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.4.0

System requirements

1

C++ standard

C++17

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2024-05-27

Latest release

2024-07-01

Avg cadence

18 days

Cold removal rate

Dep drift

6

LOC over versions

v0.0.5: 2,960 LOCv1.0.0: 3,119 LOCv1.0.2: 3,120 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Rcpp RcppParallel rstan (>= 2.32.6) rstantools posterior Rdpack GUD

Version History

4 tracked
new 1.0.2 Mar 10, 2026
updated 1.0.2 ← 1.0.0 diff Jun 30, 2024
updated 1.0.0 ← 0.0.5 diff Jun 28, 2024
new 0.0.5 May 26, 2024