MyNixOS website logo
Description

Box-Cox Symmetric Regression for Non-Negative Data.

A collection of tools for regression analysis of non-negative data, including strictly positive and zero-inflated observations, based on the class of the Box-Cox symmetric (BCS) distributions and its zero-adjusted extension. The BCS distributions are a class of flexible probability models capable of describing different levels of skewness and tail-heaviness. The package offers a comprehensive regression modeling framework, including estimation and tools for evaluating goodness-of-fit.

BCSreg

R-CMD-check

The BCSreg package provides tools for fitting Box-Cox symmetric (BCS) and zero-adjusted BCS regression models. It includes diagnostic tools for the fitted models, such as residual analysis, local influence measures, and goodness-of-fit statistics.

Installation

You can install the development version of BCSreg from GitHub with:

# install.packages("pak")
pak::pak("ffqueiroz/BCSreg")

Main functions

Implementation of the Box-Cox symmetric class of distributions

The package currently supports eight members of the BCS class of distributions:

  • Box-Cox hyperbolic,
  • Box-Cox type I logistic,
  • Box-Cox type II logistic,
  • Box-Cox normal,
  • Box-Cox power exponential,
  • Box-Cox sinh-normal,
  • Box-Cox slash,
  • Box-Cox $t$.

The following functions are provided to work with these distributions:

dBCS(x, mu, sigma, lambda, zeta, family = "NO", log = FALSE)

pBCS(q, mu, sigma, lambda, zeta, family = "NO", lower.tail = TRUE, log.p = FALSE)

qBCS(p, mu, sigma, lambda, zeta, family = "NO", lower.tail = TRUE, log.p = FALSE)

rBCS(n, mu, sigma, lambda, zeta, family = "NO")

Implementation of the zero-adjusted Box-Cox symmetric class of distributions

The package also implements zero-adjusted versions of the BCS distributions, suitable for modeling non-negative data with an excess of zeros. The supported families are the zero-adjusted versions of the same eight BCS distributions listed above.

Corresponding functions include:

dZABCS(x, alpha, mu, sigma, lambda, zeta, family = "NO", log = FALSE)

pZABCS(q, alpha, mu, sigma, lambda, zeta, family = "NO", lower.tail = TRUE, log.p = FALSE)

qZABCS(p, alpha, mu, sigma, lambda, zeta, family = "NO", lower.tail = TRUE, log.p = FALSE)

rZABCS(n, alpha, mu, sigma, lambda, zeta, family = "NO")

BCSreg

The main function of the package is BCSreg(), which fits either a BCS or a zero-adjusted BCS regression model to non-negative data. Its usage is:

BCSreg(formula, data, subset, na.action, family = "NO", zeta, link = "log", sigma.link = "log", 
       alpha.link, control = BCSreg.control(...), model = FALSE, y = FALSE, x = FALSE, ...)

The function returns an object of class "BCSreg", which supports generic methods such as print(), summary(), plot(), residuals(), among others.

extra.parameter

An important utility in the package is the extra.parameter() function, which estimates the extra parameter for certain BCS and zero-adjusted models. Its usage is:

extra.parameter(object, family, grid = seq(1, 30, 2), trace = TRUE, plot = TRUE,
                control = BCSreg.control(...), ...)

Reference

Medeiros, R. M. R., and Queiroz, F. F. (2025). Flexible modeling of non-negative continuous data: Box-Cox symmetric regression and its zero-adjusted extension.

Metadata

Version

1.1.1

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows