Package: FlexReg 1.3.0

Roberto Ascari

FlexReg: Regression Models for Bounded Continuous and Discrete Responses

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) <doi:10.1214/17-BA1079>), the variance-inflated beta (Di Brisco, A. M., Migliorati, S., Ongaro, A. (2020) <doi:10.1177/1471082X18821213>), the beta (Ferrari, S.L.P., Cribari-Neto, F. (2004) <doi:10.1080/0266476042000214501>), and their augmented versions to handle the presence of zero/one values (Di Brisco, A. M., Migliorati, S. (2020) <doi:10.1002/sim.8406>) 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) <doi:10.1002/sim.9005>), 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) <doi:10.1201/b16018>). Besides, functions to compute residuals, posterior predictives, goodness of fit measures, convergence diagnostics, and graphical representations are provided.

Authors:Roberto Ascari [aut, cre], Agnese M. Di Brisco [aut, cre], Sonia Migliorati [aut], Andrea Ongaro [aut]

FlexReg_1.3.0.tar.gz
FlexReg_1.3.0.tar.gz(r-4.5-noble)FlexReg_1.3.0.tar.gz(r-4.4-noble)
FlexReg.pdf |FlexReg.html
FlexReg/json (API)

# Install 'FlexReg' in R:
install.packages('FlexReg', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

1.00 score 3 scripts 280 downloads 18 exports 62 dependencies

Last updated 1 years agofrom:c98227b4ba. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 25 2024
R-4.5-linux-x86_64NOTENov 25 2024

Exports:convergence.diagconvergence.plotcurve.densitydBetadBetaBindFBdFBBdVIBflexregflexreg_binomposterior_predictR2_bayesrBetarBetaBinrFBrFBBrVIBWAIC

Dependencies:abindbackportsbayesplotBHcallrcheckmateclicolorspacedescdistributionaldplyrfansifarverFormulagenericsggplot2ggridgesgluegridExtragtableinlineisobandlabelinglatticelifecycleloomagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpsQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsscalesStanHeadersstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
The `FlexReg' package.FlexReg-package FlexReg
Atomic bombs dataAtomic
Bacteria dataBacteria
Italian Households Consumption dataConsumption
Convergence diagnosticsconvergence.diag
Convergence plotsconvergence.plot
Draw density plotscurve.density
Probability density function of the beta distributiondBeta
Probability mass function of the beta-binomial distributiondBetaBin
Probability density function of the flexible beta distributiondFB
Probability mass function of the flexible beta-binomial distributiondFBB
Probability density function of the variance-inflated beta distributiondVIB
Italian Election ResultsElection
Flexible Regression Models for Bounded Continuous Responsesflexreg
Flexible Regression Models for Bounded Discrete Responsesflexreg_binom
Plot Method for 'flexreg' Objectsplot.flexreg
Plot Method for '`flexreg_postpred`' objectsplot.flexreg_postpred
Posterior Predictive Method for '`flexreg`' objectsposterior_predict.flexreg
Predict Method for '`flexreg`' Objectspredict.flexreg
Print Methods for flexreg Objectsprint.flexreg
Bayesian R-squared for 'flexreg' ObjectsR2_bayes
Random generator from the beta distributionrBeta
Random generator from the beta-binomial distributionrBetaBin
Reading Skills dataReading
Residuals Method for flexreg Objectsresiduals.flexreg
Random generator from the flexible beta distributionrFB
Random generator from the flexible beta-binomial distributionrFBB
Random generation from the variance-inflated beta distributionrVIB
Stress and anxiety dataStress
Methods for '`flexreg`' Objectscoef.flexreg print.summary.flexreg summary.flexreg
Summary Method for '`flexreg_postpred`' objectssummary.flexreg_postpred
WAIC and LOOprint.WAIC.flexreg WAIC