Learn R Programming

Rsubbotools (version 0.0.1)

dsubbo: Returns density from Subbotin Distribution

Description

The dsubbo returns the density at point x for the Subbotin distribution with parameters \(a\), \(b\), \(m\).

Usage

dsubbo(x, m = 0, a = 1, b = 2)

Value

a vector containing the values for the densities.

Arguments

x

(numeric) - value in the range \((-\infty, \infty)\) to evaluate the density.

m

(numeric) - location parameter.

a

(numeric) - scale parameter. Must be in the range \((0, \infty)\).

b

(numeric) - shape parameter. Must be in the range \((0, \infty)\).

Details

The Subbotin distribution is a exponential power distribution controlled by three parameters, with formula: $$f(x;a,b,m) = \frac{1}{A} e^{-\frac{1}{b} |\frac{x-m}{a}|^b}$$ with: $$A = 2ab^{1/b}\Gamma(1+1/b)$$ where \(a\) is a scale parameter, \(b\) controls the tails (lower values represent fatter tails), and \(m\) is a location parameter.