Learn R Programming

⚠️There's a newer version (1.4.2) of this package.Take me there.

FlexReg (version 1.2)

Regression Models for Bounded and Binomial Responses

Description

Functions to fit regression models for bounded (e.g., proportions and rates) and binomial responses. In case of bounded responses, available models are the flexible beta (Migliorati, S., Di Brisco, A. M., Ongaro, A. (2018) ), the variance-inflated beta (Di Brisco, A. M., Migliorati, S., Ongaro, A. (2020) ), the beta (Ferrari, S.L.P., Cribari-Neto, F. (2004) ), and their augmented versions to handle the presence of zero/one values (Di Brisco, A. M., Migliorati, S. (2020) ). In case of binomial responses, available models are the flexible beta-binomial (Ascari, R., Migliorati, S. (2021) ), the beta-binomial, and the binomial. Inference is dealt with a Bayesian approach based on the Hamiltonian Monte Carlo (HMC) algorithm (Gelman, A., Carlin, J. B., Stern, H. S., Rubin, D. B. (2014) ). Besides, functions to compute residuals, posterior predictives, goodness-of-fit measures, convergence diagnostics, and graphical representations are provided.

Copy Link

Version

Install

install.packages('FlexReg')

Monthly Downloads

317

Version

1.2

License

GPL (>= 2)

Maintainer

Roberto Ascari

Last Published

September 16th, 2022

Functions in FlexReg (1.2)

mu.chain.nd

mu.chain.nd
flexreg_binom

Flexible Regression Models for Binomial data
convergence.plot

Convergence plots
dBeta_mu

Beta probability density function
dFB

Flexible beta probability density function
dVIB

Variance-inflated beta probability density function
dBetaBin

Beta-binomial probability mass function
curve.density

Draw density plots
flexreg

Flexible Regression Models for Proportions
dFBB

Flexible beta-binomial probability mass function
plot.flexreg_postpred

Posterior Predictives Plot
q.chain.nd

q.chain.nd
posterior_predict.flexreg

Posterior Predictive
phi.chain.nd

phi.chain.nd
q1.chain.nd

q1.chain.nd
plot.flexreg

Plot method for flexreg Objects
predict.flexreg

Prediction Method for flexreg Objects
summary.flexreg

Methods for flexreg Objects
q01.chain.nd

q1.chain.nd
q0.chain.nd

q0.chain.nd
posterior_predict

posterior_predict
theta.chain.nd

theta.chain.nd
rBetaBin

Random generator from the beta-binomial distribution
rBeta_mu

Random generator from the beta distribution
rFB

Random generator from the flexible beta distribution
rVIB

Random generation from the variance-inflated beta distribution
rFBB

Random generator from the flexible beta-binomial distribution
residuals.flexreg

Residuals Method for flexreg Objects
var.fun

var.fun
FlexReg-package

The `FlexReg' package.
R2_bayes

Bayesian R-squared for flexreg Objects
Election

Italian Election Results
Consumption

Italian Households Consumption data
WAIC

WAIC and LOO
convergence.diag

Convergence diagnostics
Reading

Reading Skills data
Stress

Stress and anxiety data
Atomic

Atomic bombs data
Bacteria

Bacteria data