Bhattacharjee {extraDistr} | R Documentation |
Bhattacharjee distribution
Description
Density, distribution function, and random generation for the Bhattacharjee distribution.
Usage
dbhatt(x, mu = 0, sigma = 1, a = sigma, log = FALSE)
pbhatt(q, mu = 0, sigma = 1, a = sigma, lower.tail = TRUE, log.p = FALSE)
rbhatt(n, mu = 0, sigma = 1, a = sigma)
Arguments
x , q |
vector of quantiles. |
mu , sigma , a |
location, scale and shape parameters. Scale and shape must be positive. |
log , log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are |
n |
number of observations. If |
Details
If and
, then
follows Bhattacharjee distribution.
Probability density function
Cumulative distribution function
References
Bhattacharjee, G.P., Pandit, S.N.N., and Mohan, R. (1963). Dimensional chains involving rectangular and normal error-distributions. Technometrics, 5, 404-406.
Examples
x <- rbhatt(1e5, 5, 3, 5)
hist(x, 100, freq = FALSE)
curve(dbhatt(x, 5, 3, 5), -20, 20, col = "red", add = TRUE)
hist(pbhatt(x, 5, 3, 5))
plot(ecdf(x))
curve(pbhatt(x, 5, 3, 5), -20, 20, col = "red", lwd = 2, add = TRUE)
[Package extraDistr version 1.10.0 Index]