Generalized Beta Distribution of the Second Kind: Properties, Likelihood, Estimation
Overview
The GB2 package explores the Generalized Beta distribution of the second kind. Density, cumulative distribution function, quantiles and moments of the distribution are given. Functions for the full log-likelihood, the profile log-likelihood and the scores are provided. Formulas for various indicators of inequality and poverty under the GB2 are implemented. The GB2 is fitted by the methods of maximum pseudo-likelihood estimation using the full and profile log-likelihood, and non-linear least squares estimation of the model parameters. Various plots for the visualization and analysis of the results are provided. Variance estimation of the parameters is provided for the method of maximum pseudo-likelihood estimation. A mixture distribution based on the compounding property of the GB2 is presented (denoted as "compound" in the documentation). This mixture distribution is based on the discretization of the distribution of the underlying random scale parameter. The discretization can be left or right tail. Density, cumulative distribution function, moments and quantiles for the mixture distribution are provided. The compound mixture distribution is fitted using the method of maximum pseudo-likelihood estimation. The fit can also incorporate the use of auxiliary information. In this new version of the package, the mixture case is complemented with new functions for variance estimation by linearization and comparative density plots.
Changes
- Authors@R field added in DESCRIPTION.
- Fixed issues in
.Rddocumentation files that affected CRAN checks. Specifically, package anchors provided for all Rd \link{} targets.
Notes
- No changes to core functionality or user‑facing behavior.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 28
- Examples that run
- 39%7 run in a plain check · 11 never run
- Exported functions with examples
- 64%
- Documented parameters
- 66%
- Return-value docs
- 93%
- Help pages citing references
- 68%
Downloads
Dependencies
Installing GB2 adds 13 packages (8 with compiled code, 15 MB of source tarballs). Heaviest: cubature 3.2 MB, laeken 2.8 MB, survey 2.3 MB.
Code & Tests
People & History
Maintainer since 1.0 (2010)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.1.2Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.1.12022-06-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 2.12015-05-11 · diff ↗ ·
added 17 exports
main.cgb2, scoreU.cgb2, dplot.cgb2, varscore.cgb2, desvar.cgb2, hess.cgb2, vepar.cgb2, derivind.cgb2, veind.cgb2, scoreU.cavgb2, scorez.cavgb2, dplot.cavgb2, varscore.cavgb2, desvar.cavgb2, hess.cavgb2, vepar.cavgb2, veind.cavgb2 - RR 3.2.0 released · 2015-04-16
- 1.22014-06-25 · diff ↗
Show 8 earlier eventsHide 8 earlier events
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- 1.12012-08-31 · diff ↗ ·
removed 1 export
nlsfit2.gb2added 26 exports
robwts, fg.cgb2, dl.cgb2, pl.cgb2, dcgb2, pcgb2, prcgb2, mkl.cgb2, moment.cgb2, incompl.cgb2, qcgb2, rcgb2, arpt.cgb2, arpr.cgb2, rmpg.cgb2, qsr.cgb2, vofp.cgb2, pofv.cgb2, logl.cgb2, scores.cgb2, ml.cgb2, pkl.cavgb2, lambda0.cavgb2, logl.cavgb2, scores.cavgb2, ml.cavgb2 - RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- 1.02011-01-06
- RR 2.12.0 released · 2010-10-15
Package metadata
- First published
- 2011-01-06
- Total releases
- 6 / 15 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 40 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("GB2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.