Skip to contents

Density, distribution function, quantile function and random generation for a Ram Awadh distribution with parameter scale.

Usage

dRA(x, theta = 1, log = FALSE)

pRA(q, theta = 1, lower.tail = TRUE, log.p = FALSE)

qRA(p, theta = 1, lower.tail = TRUE)

rRA(n, theta = 1)

Arguments

x, q

vector of quantiles.

theta

a scale parameter.

log, log.p

logical; if TRUE, probabilities p are given as log(p).

lower.tail

logical; if TRUE (default), probabilities are \(P\left[ X\leq x\right]\), otherwise, \(P\left[ X>x\right] \).

p

vector of probabilities.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

Value

dRA gives the density, pRA gives the distribution function, qRA gives the quantile function and rRA

generates random deviates.

Details

Ram Awadh distribution with scale parameter \(\theta\), has density $$f\left( x\right) =\frac{\theta ^{6}}{\theta ^{6}+120} \left( \theta+x^{5}\right) e^{-\theta x},$$ where $$x>0,~\theta >0.$$

References

Shukla, K. K., Shanker, R. ve Tiwari, M. K., 2022, A new one parameter discrete distribution and its applications, Journal of Statistics and Management Systems, 25 (1), 269-283.

Examples

library(new.dist)
dRA(1,theta=2)
#> [1] 0.1412194
pRA(1,theta=2)
#> [1] 0.3115553
qRA(.1,theta=1)
#> [1] 3.086421
rRA(10,theta=1)
#>  [1]  2.883620  7.306423  3.239384  8.253825  6.405178  2.781257  5.793906
#>  [8] 10.072189 11.221514  3.941130