MyNixOS website logo
Description

The Davies Quantile Function.

Various utilities for the Davies distribution.

The Davies distribution

CRAN_Status_Badge

Overview

The Davies distribution is a flexible family of distributions for non-negative observations; it is particularly suitable for right-skewed data. Hankin and Lee (2006) set out mathematical properties of the Davies distribution and the Davies package is showcased here. It is defined in terms of its quantile function

Q(p;c,\lambda_1,\lambda_2) = \frac{Cp^{\lambda_1}}{(1-p)^{\lambda_2}}

We may sample from this distribution using rdavies():

params <- c(2,0.1,0.1)
rdavies(10,params)
#>  [1] 1.761097 2.008966 1.767981 2.020754 1.674392 2.003635 1.485477 1.980971
#>  [9] 2.253223 2.567022

Moments are given by E(X^k)=C^kB\left(1+k\lambda_1,1-k\lambda_2\right) where B is the beta function. In the package this is given by M(), which is a convenience wraper for davies.moment(). Numerical verification for the second (non-central) moment:

c(mean(rdavies(1e6,params)^2),M(2,params))
#> [1] 4.273915 4.275837

Estimation

The least-squares technique described in Hankin and Lee 2006 is not implemented, but the package implements a maximum-likelihood estimate:

x <- rdavies(80,params)
p_estimate <- maximum.likelihood(x)
p_true <- params
p_estimate
#> [1] 1.95306332 0.08418046 0.11483549
(bias <- p_estimate - p_true)
#> [1] -0.04693668 -0.01581954  0.01483549

Reference

Robin K. S. Hankin and Alan Lee 2006. “A new family of non-negative distributions”. Aust. N. Z. J. Stat, 48(1):67-78

Metadata

Version

1.2-0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • 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-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-windows