Box–Cox Cole and Green distribution (BCCG)
bccg.Rd
Density, distribution function, quantile function, and random generation for the Box–Cox Cole and Green distribution.
Usage
dbccg(x, mu = 1, sigma = 0.1, nu = 1, log = FALSE)
pbccg(q, mu = 1, sigma = 0.1, nu = 1, lower.tail = TRUE, log.p = FALSE)
qbccg(p, mu = 1, sigma = 0.1, nu = 1, lower.tail = TRUE, log.p = FALSE)
rbccg(n, mu = 1, sigma = 0.1, nu = 1)
Arguments
- x, q
vector of quantiles
- mu
location parameter, must be positive.
- sigma
scale parameter, must be positive.
- nu
skewness parameter (real).
- log, log.p
logical; if
TRUE
, probabilities/ densities \(p\) are returned as \(\log(p)\).- lower.tail
logical; if
TRUE
(default), probabilities are \(P[X \le x]\), otherwise \(P[X > x]\).- p
vector of probabilities
- n
number of random values to return
Value
dbccg
gives the density, pbccg
gives the distribution function, qbccg
gives the quantile function, and rbccg
generates random deviates.
Details
This implementation of dbccg
and pbccg
allows for automatic differentiation with RTMB
while the other functions are imported from gamlss.dist
package.
See gamlss.dist::BCCG
for more details.