zoib: An R Package for Bayesian Inference for Beta Regression and Zero/One Inflated Beta Regression
Fang Liu and Yunchuan Kong
, The R Journal (2015) 7:2, pages 34-51.
Abstract 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.
Received: 2014-08-16; online 2015-07-18@article{RJ-2015-019, author = {Fang Liu and Yunchuan Kong}, title = {{zoib: An R Package for Bayesian Inference for Beta Regression and Zero/One Inflated Beta Regression}}, year = {2015}, journal = {{The R Journal}}, doi = {10.32614/RJ-2015-019}, url = {https://doi.org/10.32614/RJ-2015-019}, pages = {34--51}, volume = {7}, number = {2} }