The beta distribution is a versatile function that accommodates a broad range of probability distribution shapes. Beta regression based on the beta distribution can be used to model a response variable y that takes values in open unit interval (0, 1). Zero/one inflated beta (ZOIB) regression models can be applied when y takes values from closed unit interval [0, 1]. The ZOIB model is based a piecewise distribution that accounts for the probability mass at 0 and 1, in addition to the probability density within (0, 1). This paper introduces an R package – zoib that provides Bayesian inferences for a class of ZOIB models. The statistical methodology underlying the zoib package is discussed, the functions covered by the package are outlined, and the usage of the package is illustrated with three examples of different data and model types. The package is comprehensive and versatile in that it can model data with or without inflation at 0 or 1, accommodate clustered and correlated data via latent variables, perform penalized regression as needed, and allow for model comparison via the computation of the DIC criterion.

betareg, Bayesianbetareg, zoib, coda, rjags

Bayesian, gR, Cluster, Econometrics, Psychometrics, SocialSciences

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

For attribution, please cite this work as

Liu & Kong, "The R Journal: zoib: An R Package for Bayesian Inference for Beta Regression and Zero/One Inflated Beta Regression", The R Journal, 2015

BibTeX citation

@article{RJ-2015-019, author = {Liu, Fang and Kong, Yunchuan}, title = {The R Journal: zoib: An R Package for Bayesian Inference for Beta Regression and Zero/One Inflated Beta Regression}, journal = {The R Journal}, year = {2015}, note = {https://doi.org/10.32614/RJ-2015-019}, doi = {10.32614/RJ-2015-019}, volume = {7}, issue = {2}, issn = {2073-4859}, pages = {34-51} }