Learn R Programming

reliaR (version 0.01)

qq.gen.exp: Quantile versus quantile (QQ) plot for the Generalized Exponential(GE) distribution

Description

The function qq.gen.exp() produces a QQ plot for the GE based on their MLE or any other estimator. Also, a line going through the first and the third quartile can be sketched.

Usage

qq.gen.exp(x, alpha.est, lambda.est, main = " ", line.qt = FALSE, ...)

Arguments

x
vector of observations
alpha.est
estimate of the parameter alpha
lambda.est
estimate of the parameter lambda
main
the title for the plot
line.qt
logical; if TRUE, a line going by the first and third quartile is sketched.
...
additional arguments to be passed to the underlying plot function.

Value

The function qq.gen.exp() carries out a QQ plot for the GE

References

Gupta, R. D. and Kundu, D. (2001). Exponentiated exponential family; an alternative to gamma and Weibull distributions. Biometrical Journal, 43(1), 117 - 130.

Gupta, R. D. and Kundu, D. (1999). Generalized exponential distributions. Australian and New Zealand Journal of Statistics, 41(2), 173 - 188.

See Also

pp.gen.exp for PP plot and ks.gen.exp function

Examples

Run this code
## Load data
data(bearings)
## Estimates of alpha & lambda using 'maxLik' package
## alpha.est = 5.28321139, lambda.est = 0.03229609

qq.gen.exp(bearings, 5.28321139, 0.03229609, line.qt = FALSE)

Run the code above in your browser using DataLab