Cobin and micobin regression models are scalable and robustalternative to beta regression model for continuous proportional data.See the following paper for more details:
Lee, C. J., Dahl, B. K., Ovaskainen, O., Dunson, D. B. (2025).Scalable and robust regression models for continuous proportional data.arXiv preprint arXIV:2504.15269https://arxiv.org/abs/2504.15269
A dedicated Github repository for reproducing the analysis in thepaper is available athttps://github.com/changwoo-lee/cobin-reproduce. This Rpackage repository contains the functions for the cobin and micobinregression models, as well as sampler for Kolmogorov-Gamma randomvariables.
Install the package from GitHub:
# install.packages("devtools")devtools::install_github("changwoo-lee/cobin")Glossaries: GLM: generalized linear model; GLMM: generalized linearmixed model; GP: Gaussian process; NNGP: nearest neighbor Gaussianprocess; cobin: continuous binomial; micobin: mixture of continuousbinomial;
Comparisonof cobin and beta density
Comparisonof micobin and beta density
Please seeMMIdata analysis code corresponding to the Section 6 of the paper(https://arxiv.org/abs/2504.15269). More detailedexamples TBA.
dcobin(x, theta, lambda): Density ofrcobin(n, theta, lambda): Random variate generationfrom\(\mathrm{cobin}(\theta,\lambda^{-1})\)dmicobin(x, theta, psi): Density ofrmicobin(n, theta, psi): Random variate generation from\(\mathrm{micobin}(\theta, \psi)\)cobinreg(): fit Bayesian cobin GLM or GLMMmicobinreg(): fit Bayesian micobin GLM or GLMMcobinreg(): fit spatial cobin regressonmicobinreg(): fit Bayesian cobin GLM or GLMMqcb(),rcb(): quantile and random variategeneration of continuous BernoullidIH(): density of Irwin-Hall distributionbft():\(B(x) =\log((\exp(x)-1)/x)\), cumulant (log partition) functionbftprime():\(B'(x) =1/(1-\exp(-x))-1/x\), corresponding to inverse of cobit linkfunctionbftprimeprime(),bftprimeprimeprime():\(B''(x)\) andbftprimeinv(): inverse ofVft():cobinfamily(): a list of functions and expressionsneeded to fit cobin GLMglm.cobin(): fit cobin GLM using iteratively reweightedleast squares (stats::glm.fit). Supports link functions“cobit”, “logit”, “probit”, “cloglog”, “cauchit”.