Learn R Programming

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

FlexReg (version 1.1)

Regression Models for Bounded Responses

Description

Functions to fit regression models for bounded responses (e.g., proportions and rates) and binomial data. 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., and Cribari-Neto, F. (2004) ), the flexible beta-binomial (Ascari, R. and Migliorati, S. (2021) ), the beta-binomial, and the binomial one. Inference is dealt with a Bayesian approach based on the Hamiltonian Monte Carlo (HMC) algorithm (Gelman, A.; Carlin, J. B.; Stern, H. S. and 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.1

License

GPL (>= 2)

Maintainer

Roberto Ascari

Last Published

January 17th, 2022

Functions in FlexReg (1.1)

dFBB

Flexible beta-binomial probability mass function
dFB

Flexible beta probability density function
flexreg_binom

Flexible Regression Models for Binomial data
Reading

Reading Skills data
Stress

Stress and anxiety data
mu.chain.nd

mu.chain.nd
rFB

Random generator from the flexible beta distribution
Election

Italian Election Results
curve.density

Draw density plots
convergence.plot

Convergence plots
rFBB

Random generator from the flexible beta-binomial distribution
Atomic

Atomic bombs data
plot.flexreg

Plot method for flexreg Objects
Bacteria

Bacteria data
phi.chain.nd

phi.chain.nd
dBetaBin

Beta-binomial probability mass function
rBetaBin

Random generator from the beta-binomial distribution
var.fun

var.fun
dBeta_mu

Beta probability density function
rBeta_mu

Random generator from the beta distribution
summary.flexreg

Methods for flexreg Objects
theta.chain.nd

theta.chain.nd
plot.flexreg_postpred

Posterior Predictives Plot
convergence.diag

Convergence diagnostics
WAIC

WAIC and LOO
posterior_predict

posterior_predict
dVIB

Variance-inflated beta probability density function
posterior_predict.flexreg

Posterior Predictive
flexreg

Flexible Regression Models for Proportions
predict.flexreg

Prediction Method for flexreg Objects
residuals.flexreg

Residuals Method for flexreg Objects
rVIB

Random generation from the variance-inflated beta distribution
R2_bayes

Bayesian R-squared for flexreg Objects
Consumption

Italian Households Consumption data
FlexReg-package

The `FlexReg' package.