Learn R Programming

reliaR (version 0.01)

pp.gen.exp: Probability versus Probability (PP) plot for the Generalized Exponential(GE) distribution

Description

The function pp.gen.exp() produces a PP plot for the GE based on their MLE or any other estimator. Also, a reference line can be sketched.

Usage

pp.gen.exp(x, alpha.est, lambda.est, main = " ", line = 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
logical; if TRUE, a 45 degree line is sketched.
...
additional arguments to be passed to the underlying plot function.

Value

The function pp.gen.exp() carries out a PP plot for the GE.

See Also

qq.gen.exp for QQ plot and ks.gen.exp functions;

Examples

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

pp.gen.exp(bearings, 5.28321139, 0.03229609, line = TRUE)

Run the code above in your browser using DataLab