Title: | Bimodal Skew Symmetric Normal Distribution |
---|---|
Description: | Density, distribution function, quantile function and random generation for the bimodal skew symmetric normal distribution of Hassan and El-Bassiouni (2016) <doi:10.1080/03610926.2014.882950>. |
Authors: | Abu Hossain, Robert Rigby, Mikis Stasinopoulos |
Maintainer: | Abu Hossain <[email protected]> |
License: | GPL-2 |
Version: | 0.1.0 |
Built: | 2024-12-21 06:32:54 UTC |
Source: | CRAN |
These functions define the Bimodal Skew Symmetric Normal Distribution. This is a four parameter distribution and can be used to fit a GAMLSS model.The functions dBSSN, pBSSN, qBSSN and rBSSN define the probability distribution function, the cumulative distribution function, the inverse cumulative distribution functions and the random generation for the Bimodal Skew Symmetric Normal Distribution; respectively.
BSSN(mu.link = "identity", sigma.link = "log", nu.link = "identity", tau.link = "log") dBSSN(x, mu = 0, sigma = 1, nu = 1, tau = 0.5, log = FALSE) pBSSN(q, mu = 0, sigma = 1, nu = 1, tau = 0.5, lower.tail = TRUE, log.p = FALSE, log = T) qBSSN(p, mu = 0, sigma = 1, nu = 1, tau = 0.5, lower.tail = TRUE, log.p = FALSE) rBSSN(n, mu = 0, sigma = 1, nu = 1, tau = 0.5)
BSSN(mu.link = "identity", sigma.link = "log", nu.link = "identity", tau.link = "log") dBSSN(x, mu = 0, sigma = 1, nu = 1, tau = 0.5, log = FALSE) pBSSN(q, mu = 0, sigma = 1, nu = 1, tau = 0.5, lower.tail = TRUE, log.p = FALSE, log = T) qBSSN(p, mu = 0, sigma = 1, nu = 1, tau = 0.5, lower.tail = TRUE, log.p = FALSE) rBSSN(n, mu = 0, sigma = 1, nu = 1, tau = 0.5)
mu.link |
Defines the mu.link, with identity link as the default for the mu parameter |
sigma.link |
Defines the sigma.link, with log link as the deafult for the sigma parameter |
nu.link |
Defines the nu.link, with identity link as the default for the nu parameter |
tau.link |
Defines the tau.link, with log link as the default for the tau parameter |
x , q
|
Vector of quantiles |
mu |
Vector of location parameter values |
sigma |
Vector of scale parameter values |
nu |
Vector of nu parameter values |
tau |
Vector of bimodality parameter values |
log , log.p
|
logical; if TRUE, probabilities p are given as log(p) |
lower.tail |
logical; if TRUE (default), probabilities are P[X <= x], otherwise, P[X > x] |
p |
Vector of probabilities |
n |
number of observations; if length(n) > 1, the length is taken to be the number required |
The probability density function of the BSSN distribution is given by
for , where
,
,
,
.
and
are location parameters and
and
denote the scale and bimodality parameters respectively.
Hassan, M. Y. and El-Bassiouni M. Y. (2015). Bimodal skew-symmetric normal distribution,Communications in Statistics-Theory and Methods, 45, part 5, pp 1527–1541.
Hossain, A.Rigby, R. A. Stasinopoulos D. M. and Enea, M. A flexible approach for modelling proportion response variable:LGD, 31st International workshop for Statistical Modelling Society,1, pp 127–132.
Rigby, R. A. and Stasinopoulos D. M. (2005). Generalized additive models for location, scale and shape,(with discussion), Appl. Statist., 54, part 3, pp 507-554.
op<-par(mfrow=c(3,3)) curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=1),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=5),-12, 12,ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=10),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=20),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=0, tau=4),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=-1, sigma=0.1, nu=0, tau=3),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=2, tau=0),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=-1, sigma=0.1, nu=-2, tau=0),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=-1, sigma=0.1, nu=-3, tau=0.8),-12, 12, ylab="f(x)", main="BSSN") par(op)
op<-par(mfrow=c(3,3)) curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=1),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=5),-12, 12,ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=10),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=1, tau=20),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=0, tau=4),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=-1, sigma=0.1, nu=0, tau=3),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=1, sigma=0.1, nu=2, tau=0),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=-1, sigma=0.1, nu=-2, tau=0),-12, 12, ylab="f(x)", main="BSSN") curve(dBSSN(x, mu=-1, sigma=0.1, nu=-3, tau=0.8),-12, 12, ylab="f(x)", main="BSSN") par(op)