Learn R Programming

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

FlexReg (version 1.3.0)

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

686

Version

1.3.0

License

GPL (>= 2)

Maintainer

Roberto Ascari

Last Published

September 29th, 2023

Functions in FlexReg (1.3.0)

phi.chain.nd

phi.chain.nd
plot.flexreg

Plot Method for flexreg Objects
q1.chain.nd

q1.chain.nd
posterior_predict.flexreg

Posterior Predictive Method for `flexreg` objects
predict_variance

predict_variance
newdata.adjust

newdata.adjust
predict_response

predict_response
predict.flexreg

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

mu.chain.nd
q01.chain.nd

q01.chain.nd
flexreg_binom

Flexible Regression Models for Bounded Discrete Responses
predict_lambda.chain

predict_lambda.chain
posterior_predict

posterior_predict
q0.chain.nd

q0.chain.nd
predict_mu.chain

predict_mu.chain
summary.flexreg_postpred

Summary Method for `flexreg_postpred` objects
plot.flexreg_postpred

Plot Method for `flexreg_postpred` objects
predict_over

predict_over
print.flexreg

Print Methods for flexreg Objects
residuals.flexreg

Residuals Method for flexreg Objects
rBeta

Random generator from the beta distribution
rFB

Random generator from the flexible beta distribution
rFBB

Random generator from the flexible beta-binomial distribution
predict_link

predict_link
summary.flexreg

Methods for `flexreg` Objects
predict_precision

predict_precision
rVIB

Random generation from the variance-inflated beta distribution
rate_plot

rate_plot
predict_q.chain

predict_q.chain
rBetaBin

Random generator from the beta-binomial distribution
theta.chain.nd

theta.chain.nd
var.fun

var.fun
Bacteria

Bacteria data
Atomic

Atomic bombs data
Consumption

Italian Households Consumption data
WAIC

WAIC and LOO
Election

Italian Election Results
FlexReg-package

The `FlexReg' package.
R2_bayes

Bayesian R-squared for flexreg Objects
Reading

Reading Skills data
dVIB

Probability density function of the variance-inflated beta distribution
extract.pars

extract.pars
dBeta

Probability density function of the beta distribution
dBetaBin

Probability mass function of the beta-binomial distribution
Stress

Stress and anxiety data
convergence.plot

Convergence plots
curve.density

Draw density plots
dFB

Probability density function of the flexible beta distribution
dFBB

Probability mass function of the flexible beta-binomial distribution
convergence.diag

Convergence diagnostics
flexreg

Flexible Regression Models for Bounded Continuous Responses