Learn R Programming

reliaR (version 0.01)

qq.gumbel: Quantile versus quantile (QQ) plot for the Gumbel distribution

Description

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

Usage

qq.gumbel(x, mu.est, sigma.est, main = " ", line.qt = FALSE, ...)

Arguments

x
vector of observations
mu.est
estimate of the parameter mu
sigma.est
estimate of the parameter sigma
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.gumbel() carries out a QQ plot for the Gumbel.

References

Marshall, A. W., Olkin, I.(2007). Life Distributions: Structure of Nonparametric, Semiparametric, and Parametric Families, Springer, New York.

See Also

pp.gumbel for PP plot and ks.gumbel function;

Examples

Run this code
## Load data sets
data(dataset2)
## Maximum Likelihood(ML) Estimates of mu & sigma for the data(dataset2)
## Estimates of mu & sigma using 'maxLik' package
## mu.est = 212.157, sigma.est = 151.768

qq.gumbel(dataset2, 212.157, 151.768, main = " ", line.qt = FALSE)

Run the code above in your browser using DataLab