Learn R Programming

FlexReg (version 1.4.2)

Regression Models for Bounded Continuous and Discrete Responses

Description

Functions to fit regression models for bounded continuous and discrete responses. In case of bounded continuous responses (e.g., proportions and rates), 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) ) are implemented. In case of bounded discrete responses (e.g., bounded counts, such as the number of successes in n trials), available models are the flexible beta-binomial (Ascari, R., Migliorati, S. (2021) ), the beta-binomial, and the binomial are implemented. 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

523

Version

1.4.2

License

GPL (>= 2)

Maintainer

Roberto Ascari

Last Published

February 4th, 2026

Functions in FlexReg (1.4.2)

curve.density

Draw density plots
fit.model_binom

internal function
flexreg

Flexible Regression Models for Bounded Continuous Responses
newdata.adjust

newdata.adjust
predict.flexreg

Predict Method for `flexreg` Objects
q01.chain.nd

q01.chain.nd
posterior_predict.flexreg

Posterior Predictive Method for `flexreg` objects
predict_over

predict_over
predict_mu.chain

predict_mu.chain
extract.pars

extract.pars
mu.chain.nd

mu.chain.nd
flexreg_binom

Flexible Regression Models for Bounded Discrete Responses
predict_q.chain

predict_q.chain
predict_precision

predict_precision
plot.flexreg

Plot Method for flexreg Objects
predict_variance

predict_variance
phi.chain.nd

phi.chain.nd
predict_response

predict_response
print.flexreg

Print Methods for flexreg Objects
summary.flexreg_postpred

Summary Method for `flexreg_postpred` objects
plot.flexreg_postpred

Plot Method for `flexreg_postpred` objects
summary.flexreg

Methods for `flexreg` Objects
model_frame

Construct Design Matrices for flexreg Objects
model.matrix.flexreg

Construct Design Matrices for flexreg Objects
q0.chain.nd

q0.chain.nd
q1.chain.nd

q1.chain.nd
posterior_predict

posterior_predict
predict_link

predict_link
predict_lambda.chain

predict_lambda.chain
residuals.flexreg

Residuals Method for flexreg Objects
theta.chain.nd

theta.chain.nd
rate_plot

rate_plot
var.fun

var.fun
dBetaBin

The Beta-Binomial Distribution
Election

Italian Election Results
FlexReg-package

The 'FlexReg' package.
dFBB

The Flexible Beta-Binomial Distribution
Bacteria

Bacteria data
Consumption

Italian Households Consumption data
dFB

The Flexible Beta Distribution
dBeta

The Mean-Precision Parameterized Beta Distribution
Atomic

Atomic bombs data
convergence.plot

Convergence plots
R2_bayes

Bayesian R-squared for flexreg Objects
Reading

Reading Skills data
convergence.plot.internal

internal function
R2Bayes_internal

internal function
WAIC

WAIC and LOO
dVIB

The Variance-Inflated Beta Distribution
Stress

Stress and anxiety data
WAIC_internal

internal function
convergence.diag

Convergence diagnostics
fit.model_2

internal function
convergence.diag.internal

internal function