CRAN/E | FlexReg

FlexReg

Regression Models for Bounded Continuous and Discrete Responses

Installation

About

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.

System requirements GNU make

Key Metrics

Version 1.3.0
R ≥ 3.5.0
Published 2023-09-29 202 days ago
Needs compilation? yes
License GPL-2
License GPL-3
CRAN checks FlexReg results

Downloads

Yesterday 4 0%
Last 7 days 25 -47%
Last 30 days 183 -18%
Last 90 days 847 -8%
Last 365 days 3.257 +1%

Maintainer

Maintainer

Roberto Ascari

roberto.ascari@unimib.it

Authors

Roberto Ascari

aut / cre

Agnese M. Di Brisco

aut / cre

Sonia Migliorati

aut

Andrea Ongaro

aut

Material

Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

FlexReg archive

Depends

R ≥ 3.5.0

Imports

methods
Rcpp ≥ 0.12.0
rstan ≥ 2.26.0
rstantools ≥2.0.0
loo
bayesplot
ggplot2
Formula
utils
grDevices
RcppParallel

Suggests

testthat

LinkingTo

BH ≥ 1.66.0
Rcpp ≥ 0.12.0
RcppEigen ≥ 0.3.3.3.0
rstan ≥ 2.26.0
StanHeaders ≥ 2.26.0
RcppParallel